Open Bug 1976403 Opened 1 year ago Updated 8 months ago

YouTube videos intermittently looping (playing from the start on reaching end of video)

Categories

(Core :: Audio/Video: Playback, defect, P3)

Firefox 141
defect

Tracking

()

People

(Reporter: rxazub33, Unassigned)

References

Details

(Keywords: good-first-bug)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0

Steps to reproduce:

Play a YouTube video, e.g. https://www.youtube.com/watch?v=y8Kyi0WNg40

Actual results:

On reaching the end of a video, it sometimes automatically starts playing again from the start.

Expected results:

Playback should stop on reaching the end of the current video (YouTube then normally displays a static list of recommended videos, or an "up next" counter if YouTube's autoplay setting is on).

First noticed the unexpected behaviour after upgrade to 141 beta a couple of weeks ago (video linked above was selected as one that exhibited this behaviour and was easy to test with but was also experiencing the problem with longer videos). After additional testing on a separate system, it seems the behaviour may be isolated to the following configuration:

  1. Firefox 141 (couldn't reproduce on 140)
  2. Bose QuietComfort 45 Bluetooth headphones connected (couldn't reproduce with on-board audio or with Jabra 75T Bluetooth headphones connected)
  3. media.hardwaremediakeys.enabled set to true (couldn't reproduce with that feature switched off)

Could there have been a change in 141 that results in this behaviour with specific models of Bluetooth headphones when media.hardwaremediakeys.enabled is on?

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jmathies)
Flags: needinfo?(jmathies)

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jmathies)

Been a while since I reported this so just tested with 146 beta and can confirm the issue persists.

Play a YouTube video, e.g. https://www.youtube.com/watch?v=y8Kyi0WNg40

After I play this, I get a waiting screen for about 20 seconds, and then a new video loads. I was not able to reproduce the looping.

Could you help us out by trying to capture a Firefox performance profile when this happens? Visit https://profiler.firefox.com/ for more information and to enable the profiling toolbar button. When capturing a profile, please follow these steps -

  1. Navigate to about:logging
  2. In the logging preset drop down, select 'Media playback' and then click 'Set Log Modules'
  3. Click 'Start Logging' and conduct your testing
  4. Upload the resulting performance profile and post the url provided to this bug.

Thanks!

Flags: needinfo?(jmathies)
See Also: → 1901224
Severity: -- → S3
Keywords: good-first-bug
Priority: -- → P3
Status: UNCONFIRMED → NEW
Ever confirmed: true

Connection between Bug 1901224 and 1976403: Both involve Bose Bluetooth headphones sending unexpected AVRCP media events through Firefox's hardware media keys (SMTC) integration on Windows. Bug 1901224 (Firefox 126) causes unintended pauses during seeking; Bug 1976403 (Firefox 141) causes unintended looping at video end. Both resolved by setting media.hardwaremediakeys.enabled = false. The regression to 141 for the looping variant suggests something changed in the SMTC/media session code between Firefox 140 and 141.

You need to log in before you can comment on or make changes to this bug.