Bug 435230 - Media Player widget shows two tabs with one played Youtube video
Summary: Media Player widget shows two tabs with one played Youtube video
Status: RESOLVED FIXED
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: Firefox (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-01 19:33 UTC by medin
Modified: 2022-12-11 09:15 UTC (History)
6 users (show)

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


Attachments
Media player shows two tabs with one youtube tab (497.85 KB, image/png)
2021-04-01 19:33 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2021-04-01 19:33:46 UTC
Created attachment 137246 [details]
Media player shows two tabs with one youtube tab

When I open a music video on Youtube, Media Player widget shows two tabs with same title, both tabs control (pause /play) the same played video. The same happens with Firefox and Chromium. See attached image for more info.

Operating System: Manjaro Linux
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.4.105-1-MANJARO
OS Type: 64-bit
Graphics Platform: X11
Comment 1 Nate Graham 2021-04-02 00:10:26 UTC
This is caused because Firefox exports its own MPRIS interface, which competes with that of plasma-browser-integration. Unfortunately PBI is unable to suppress it automatically. So you will need to either stop using PBI or else set media.hardwaremediakeys.enabled to false in Firefox's about:config window.

Ultimately it might be for the best if PBI stopped doing its own thing since Firefox now has the feature automatically.
Comment 2 medin 2021-04-02 00:49:14 UTC
(In reply to Nate Graham from comment #1)
> This is caused because Firefox exports its own MPRIS interface, which
> competes with that of plasma-browser-integration. Unfortunately PBI is
> unable to suppress it automatically. So you will need to either stop using
> PBI or else set media.hardwaremediakeys.enabled to false in Firefox's
> about:config window.
> 
> Ultimately it might be for the best if PBI stopped doing its own thing since
> Firefox now has the feature automatically.

Yes you are right, disabling PBI extension both on Firefox and Chromium solved the problem, so PBI should first read "media.hardwaremediakeys.enabled" value and if true it should no longer communicate with Media Player because the browser is already capable of directly doing it.
Truthfully with media control removed from its tasks, PBI became not worthy to be installed on browsers apart from download progress functionality that will keep some users using it.
Comment 3 ariasuni 2021-04-10 00:31:52 UTC
Could this bug be linked to these other bugs, too, or not at all?
https://bugs.kde.org/show_bug.cgi?id=435230
https://bugs.kde.org/show_bug.cgi?id=419746

It looks like these three problems overlap so I’m wondering if they should considered or not, or if it’s just that there are a lot of places where Plasma mixes up applications with the same name or something.
Comment 4 fw.smit01 2022-12-11 09:15:59 UTC
This can be closed. It's fixed by https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1088