SUMMARY The Spotify web client isn't being picked up by the integration as a source of media playing therefore it's not possible to control it STEPS TO REPRODUCE 1. Go to https://open.spotify.com/ 2. Play a song 3. Go to multimedia controls and see its not playing anything OBSERVED RESULT Media isn't playing according to Plasma integration EXPECTED RESULT Media is playing and should be reflected in multimedia controls SOFTWARE/OS VERSIONS Linux/KDE Plasma: Gentoo Linux (available in About System) KDE Plasma Version: 5.15.5 KDE Frameworks Version: 5.60.0 Qt Version: 5.12.3
Again the issue of Firefox enforcing content-security policy on websites ... see also Bug 411148
*** Bug 412075 has been marked as a duplicate of this bug. ***
(In reply to Kai Uwe Broulik from comment #1) > Again the issue of Firefox enforcing content-security policy on websites ... > see also Bug 411148 I understand it's not a KDE issue but is there something to be done about it? I tried disabling CSP but it didn't help
The player detection code could be injected in such a way as to not trigger content security protection, as was done with the Audio constructor. However, for calling methods on the player, such as play() and pause(), I still need to dynamically inject code. I am not sure if that can be done with the exportFunction approach but I also haven't really looked into it.
Fixed by https://cgit.kde.org/plasma-browser-integration.git/commit/?id=c2fba76125f40142b0cc85409d61a46f97bac01a Media session API (i.e. album art et al) isn't working either as a result of content security policy but that would be quite a hassle to get working, so I'd rather not). Media controls seem to work again, though.
Thank you, it works. How soon will there be an updated XPI file to include this permanently?
We just found a way to even get media session (i.e. album art and what not) working with Spotify on Firefox. I'm planning to get a release out by end of next week