Bug 412071 - Multimedia Controls - Spotify Web Client
Summary: Multimedia Controls - Spotify Web Client
Status: RESOLVED FIXED
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: Firefox (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
: 412075 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-09-19 17:55 UTC by J
Modified: 2020-04-09 20:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J 2019-09-19 17:55:53 UTC
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
Comment 1 Kai Uwe Broulik 2019-09-19 19:42:39 UTC
Again the issue of Firefox enforcing content-security policy on websites ... see also Bug 411148
Comment 2 Matthijs Tijink 2019-09-19 19:44:50 UTC
*** Bug 412075 has been marked as a duplicate of this bug. ***
Comment 3 J 2019-09-19 22:53:09 UTC
(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
Comment 4 Kai Uwe Broulik 2019-09-20 06:39:53 UTC
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.
Comment 5 Kai Uwe Broulik 2020-04-09 17:26:18 UTC
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.
Comment 6 J 2020-04-09 20:08:54 UTC
Thank you, it works.

How soon will there be an updated XPI file to include this permanently?
Comment 7 Kai Uwe Broulik 2020-04-09 20:25:00 UTC
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