Bug 455654 - Widget of control audio/video in web browser thumbnails shown in all instead of one
Summary: Widget of control audio/video in web browser thumbnails shown in all instead ...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 5.25.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-20 13:31 UTC by Piotr Mierzwinski
Modified: 2023-08-25 18:27 UTC (History)
4 users (show)

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


Attachments
Firefox-Planet-KDE_thumbnail_with_av-controls (160.56 KB, image/png)
2022-06-22 13:32 UTC, Piotr Mierzwinski
Details
Firefox-YouTube_thumbnail_with_av-controls (158.93 KB, image/png)
2022-06-22 13:34 UTC, Piotr Mierzwinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Mierzwinski 2022-06-20 13:31:16 UTC
SUMMARY
Sometime I have opened two or three instances of web browser (Firefox). In one of them I start stream playing (YouTube for example). When I over my mouse on icon of my browser placed in task bar I get control widget to stop/play the stream. The issue I think it is here, is that I get this control widget for all 2 or 3 icons of opened web browsers and also I can see speaker icon on all icons, not only in one when is playing stream


STEPS TO REPRODUCE
1.  Start 2 or 3 instances of web browser (I use Firefox) / new window
2.  open some web pages in each of them
3. in one of the web browser open streaming, like YouTube
4. play a stream
5. over a mouse on every icon placed in task bar

OBSERVED RESULT
audio/video control widget on every icons, the same speaker emblem (muting/unmuting autio)

EXPECTED RESULT
audio/video control widget should be placed only in that icon where is playing stream, the same speaker emblem

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.95
Qt Version: 5.15.5 (with recent kde patches)

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2022-06-20 18:21:18 UTC
supposedly fixed on Plasma 5.22, see bug 375943
Comment 2 Piotr Mierzwinski 2022-06-20 18:38:06 UTC
(In reply to Patrick Silva from comment #1)
> supposedly fixed on Plasma 5.22, see bug 375943

I reported issue in 5.25, so this seems to be regression
Comment 3 Nate Graham 2022-06-21 18:03:25 UTC
Can you attach some screenshots, please?
Comment 4 Piotr Mierzwinski 2022-06-22 13:32:26 UTC
Created attachment 150051 [details]
Firefox-Planet-KDE_thumbnail_with_av-controls
Comment 5 Piotr Mierzwinski 2022-06-22 13:34:18 UTC
Created attachment 150052 [details]
Firefox-YouTube_thumbnail_with_av-controls
Comment 6 Piotr Mierzwinski 2022-06-22 13:43:55 UTC
(In reply to Nate Graham from comment #3)
> Can you attach some screenshots, please?

PFA.
Screenshots coming from today updated Neon Unstable (tested with Firefox), so in Plasma 5.25.80, but in Arch with Plasma 5.25.0 it looks the same.
Comment 7 Adam Fontenot 2023-08-23 21:39:28 UTC
Can definitely reproduce this, marking confirmed.

There's been some confusion between different issues in the related bug reports, so let me clarify. In bug 409980 (fixed in 5.23) the media player was taking over the window preview and window title in the widget. That doesn't happen any more, and it was the biggest source of annoyance around the widget I think.

Bug 375943 is about the task manager icons having the little "audio" icon added to windows that aren't the source of the sound.

This bug is about the small window previews in the two task managers showing the media control widget on all windows instead of the one playing sound. It might have the same problem source as 375943 but I think this should stay open as that bug supposedly does not have a general solution without changes to mpris, and it would be nice to apply a temporary fix to this issue if possible.

Extreme (though still useful) workarounds might include (a) adding the option to disable the media player controls on window previews entirely, or (b) applying the same solution as in 409980 and only showing the controls when the window title matches the playing media. The latter would make the controls slightly less useful for tabbed browsers, but would continue to work with e.g. Amarok.
Comment 8 Nate Graham 2023-08-25 18:27:55 UTC
Seems like it, yeah.