Bug 480731

Summary: Media controls for YouTube previews stay active after the preview is no longer playing
Product: [Plasma] plasma-browser-integration Reporter: edinbruh <alvisebruniera>
Component: FirefoxAssignee: Kai Uwe Broulik <kde>
Status: CONFIRMED ---    
Severity: normal CC: kdedev
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=446810
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description edinbruh 2024-02-02 11:57:31 UTC
SUMMARY
When hovering over a YT thumbnail it starts playing a preview, and that is reported by the tray component, kde connect app, etc. But when you move the mouse away and the preview stops playing, KDE still reports it as playing untill any other media starts playing.
It is not even reported as paused, the seek bar is progressing and you can pause it manually.

STEPS TO REPRODUCE
1. Open YT and hover above a thumbnail until it starts playing
2. Stop hovering so it stops playing
3. KDE still reports it as playing

OBSERVED RESULT
The preview is reported as still playing

EXPECTED RESULT
The preview should stop being reported when not playing anymore

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: fedora 39 / kde 
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Comment 1 TraceyC 2024-07-11 18:15:07 UTC
I can confirm this behavior on Solus

1. Have the Media Player widget on the desktop, open my phone's notification (KDE Connect is configured to show the media player controls on the phone)
2. Load YouTube in a Firefox window using a profile with Plasma Integration as the only addon
3. Hover over a video until it plays, notice the Media Player widget and phone notification correctly show the pause icon, indicate the video is playing
4. Move the mouse so the video stops playing. Notice the Media Player widget and notification haven't changed. They still indicate the video is playing.

Operating System: Solus 4.5
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2