Bug 489358 - progress bar on "Media Player" widget don't reset correctly in Youtube Music
Summary: progress bar on "Media Player" widget don't reset correctly in Youtube Music
Status: CONFIRMED
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: Firefox (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-28 07:14 UTC by angelo
Modified: 2024-07-11 16:16 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 angelo 2024-06-28 07:14:03 UTC
SUMMARY
When a new song starts the progress bar doesn't reset correctly

STEPS TO REPRODUCE
1. Play a song in YouTube Music and wait for a new one to start

OBSERVED RESULT
The progress bar doesn't reset. As the song plays, it starts jumping backwards but never back to the beginning. 
When manually placed at the beginning, it starts playing the last song for a couple seconds before stopping. 

EXPECTED RESULT
Once the music ends, the bar should reset.

Plasma Browser Integration Version: 1.9.1
Comment 1 TraceyC 2024-07-03 19:21:29 UTC
Thank you for the bug report. I'm not able to reproduce this with Firefox in either Solus or Kubuntu or KDE Neon
To clarify, I was looking at the progress bar in the browser itself
Plasma integration 1.9.1

I tried with a browser profile that has no addons other than Plasma Integration (Kubuntu, Neon), as well as one (on Solus) that has quite a few (including YouTube Enhancer)

To make sure we're talking about the same thing, are you looking at the progress bar in the browser or a widget or something else?
Ideally, if you can get a screen recording of the behavior, that will help us narrow things down.
Comment 2 angelo 2024-07-04 01:05:42 UTC
I was talking about the media player widget, sorry if I wasn't clear enough.
Here's a videos of the bug: https://streamable.com/ammdwi
Comment 3 TraceyC 2024-07-11 16:16:20 UTC
Thanks for clarifying, and for the video. It clearly shows what you're describing.
I was able to reproduce the bug in a different way on Solus. The problem is intermittent.

- Firefox profile with no addons except Plasma Integration
- Media Player widget on the desktop
- Loaded a YouTube playlist https://www.youtube.com/watch?v=kXYiU_JCYtU&list=PLyORnIW1xT6wFALM5dZlkFhOULbToFok3&index=1
- Used the mouse to click on the progress bar in the browser window and skip ahead in the video

Expected:
The progress bar in the widget matches the one in the browser

Observed:
The progress bar sometimes doesn't move ahead to the new position like the one in the browser does

I tried vimeo.com and wasn't able to reproduce the problem there, so it seems the problem might be with how either the YouTube API is sending data or how the widget is interpreting that data.