You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#111208 Problem with latest JCE version when inserting spotify songs

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by rocholz on Friday, 17 June 2022 18:51 BST

rocholz
Hi,

i have a strange problem:

when i use JCE version 2.9.9 and i insert a spotify song - that is working without any problem.

But when i use your latest JCE version, it is not working - the spotify song appears as a broken iframe without any spotify content.

I cannot find the problem and of course i carefully looked to the correct settings (iframe, media and so on...)

Can you help me ?

If necessary, i can provide you a test environment on the web with SU access.

Gerold

Ryan
Are you using the iframe embed code provided by Spotify?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

rocholz
Hi Ryan,

i simply copy the link (not the embed code!) provided by spotify (example: https://open.spotify.com/track/6FKKO4AzapkLjSyhgl764Q?si=24de5ccaa34c48f4) and insert that in JCE editor area.

In Version 2.9.9 that is possible without any problem and the song is displayed properly.

But in higher versions of JCE i see only an error message within a frame.

Do you have an idea ?


Ryan
This is working in my tests - with your link - in JCE Pro 2.9.24

What do you have selected for the Allow IFrames option in Editor Profiles -> Plugin Parameters -> Media Support?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

rocholz
Hi Ryan,

of course it is set to yes and i pay attention, that my userprofile is the highest on the list of profiles.

In the evening i made a test again: on existing JCE installation 2.9.9. i installed 2.9.24 - test inserting spotify link and it failed.

Then i installed back 2.9.9. and it works again - nothing more - no change of settings....

If you want, i can provide you with login to my web test environment with SU rights



Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

rocholz
Ok - it is done

First you can make test in existing jce installation 2.9.9 - inserting spotify link is no problem
Then you can install 2.9.24 over existing 2.9.9 - spotify link fails
Install back to 2.9.9 - inserting spotify link will work again.

You can try inserting the link here:
https://efgtestneu.efg-mannheim.de/index.php/a-team-gruppenarbeit-pflege/edit/3/125/entry?start=0

It is a direct link to an edit formular where i make the tests

Ryan
Which browser are you using?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

rocholz
Latest Opera Edition

Good idea - i will try chrome

Ryan
I've found the issue and I believe I have fixed it, but I am having trouble installing the beta on your site, as it keeps timing out.

Please try JCE Pro 2.9.25 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

rocholz
With Chrome - i face the same problem.

The problem seems to be: when the link is inserted in JCE Editor higher than 2.9.9, there is a try to open spotiy application on PC and to play the song in application, but not inserting the link in editor area.

But when i do the same in 2.9.9. nothing happens - only the link will be inserted as desired...

Do you have an idea?

rocholz
Ah ok - i try to install and give feedback to you

rocholz
The song now will be displayed, but there is a strange problem:

when i play the song under 2.9.9 installation, the whole song without time limited restriction will be played.

when i insert with your 2.9.25 alpha edition, only a time limited version of the song will be played and spotify inserts a link with "play the full song in spotify"....

I try a few times in 2.9.9. to see, if this problem also exists in 2.9.9 and it is not JCE problem - or it is Spotify problem....

Ryan
This is a Spotify issue, as JCE embeds the code provided by Spotify. In 2.9.9 there was actually an error which actually resulted in JCE not using the correct Spotify embed code.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

rocholz
Oh no - can't you implement the "spotify insert logic of 2.9.9 in 2.9.25" ????

Because that is correct - the whole song will be displayed!

I tried several times and everytime the whole song will be inserted and displayed under 2.9.9.

and only a time crippled version of song will be displayed under 2.9.25 :(

That makes JCE Version above 2.9.9 and above not usable for me - because i want o have a page, there also "dummyusers" can maintain the articles,
and under 2.9.24 or higher they would everytime cry for the webmaster when an inserted song is not shown properly.

Perhaps you can make a switch in JCE Editor settings - like "embed Spotify with JCE iframe" and "embed Spotify with official Spotify iframe" ???? - OR you can present me a workaround in your higher version that i have same effect leike 2.9.9 <br> but i am afraid - this a problem by law and licenses due to Spotify condition - am i right ?

That would help people like me very much.

And of course i would be a paying JCE customer for a long time. Otherwise i have to remain on 2.9.9

Gerold

Ryan
JCE uses the oEmbed service to request embed data from various providers such as Youtube, Vimeo, Spotify etc. This requires data to be sent to a specific url, in this case -

https://open.spotify.com/oembed?url=https%3A%2F%2Fopen.spotify.com%2Ftrack%2F6FKKO4AzapkLjSyhgl764Q%3Fsi%3D24de5ccaa34c48f4
- which then returns that providers preferred embed code. For Spotify, this appears to use a compact player by default, with no option to specify a standard size player.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

rocholz
In technical terms i understand you - but where is the problem to implement a switch in JCE settings that the user can set "2.9.9" mode or the new "2.9.24" mode, when inserting Spotify links? I think a lot of users would appreciate it.

If it is a problem, i have to patch 2.9.25 manually for myself or i have to stay on 2.9.9 ?

Ryan
Download this plugin - https://github.com/widgetfactory/wf-custom-spotify/releases/download/1.0.0/plg_wf_custom_spotify_100.zip

Install using the Joomla Extension Manager, then enable it.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

rocholz
OK - i'll give it a try and give Feedback to you. Thx for Info

rocholz
Ok, Ryan - that seems to work perfect for me!

Thank you very much - and now i will immediately update to JCE 2.9.24 😃

See you.