Created attachment 120300 [details] Add Chrome to list of known media players? Dear all, Love your mpris implementation! Would it be possible to add Chrome to the known media players list, however? This would make it possible to control Chrome playback via panel plugin in Xfce, for instance. I know, not KDE but the extension is working well with Xfce otherwise. :-) Attaching a screenshot for context. Thanks and regards!
Thanks for your suggestion! I quickly checked the source code of the xfce pulseaudio plugin and from what I can tell there is an implementation bug that prevents it from working with this extension: The DBus service we register is org.mpris.MediaPlayer2.plasma_browser_integration. The plugin uses the last part of the service name for looking up an application .desktop file, i.e. it would look for applications/plasma_browser_integration.desktop which doesn't exist. What it should be doing instead is read the "DesktopEntry" property on the org.mpris.MediaPlayer interface which will return the browser's desktop entry (e.g. google-chrome) and then use this for matching. This is even greater of an issue if you consider that the service name could also have a PID suffix in case of multiple player instances, so this is something that should be fixed nonetheless. Please file a bug report against XFCE, thanks!
Done. Thanks Kai! https://bugzilla.xfce.org/show_bug.cgi?id=15487