Open Bug 1812957 Opened 2 years ago Updated 10 months ago

Possible issues with background playback of YouTube playlists

Categories

(GeckoView :: Extensions, defect, P5)

All
Android
defect

Tracking

(Not tracked)

People

(Reporter: cpeterson, Unassigned)

References

Details

From github: https://github.com/mozilla-mobile/fenix/issues/28311.

Steps to reproduce

  1. Install the Video Background Play Fix add-on.
  2. Visit a Youtube playlist, e.g. https://m.youtube.com/playlist?list=PL4B22D54E54AC7CB9
  3. Start playback.
  4. Switch to a different tab.
  5. Put Firefox into the background.

Expected behaviour

Playback of the playlist continues successfully across all tracks.

Actual behaviour

I've had some reports (https://github.com/mozilla/video-bg-play/issues/32) that playback gets stuck once it reaches the end of the current track, i.e. playback of the following track doesn't successfully resume.

Personally I tried to reproduce this both in October, as well as now with a current Nightly (2022-12-22 https://github.com/mozilla-mobile/fenix/commit/50cc477d14317cf671c72fce647d2d0efbef5edb is the latest that doesn't crash for me due to #28310), but couldn't, i.e. playback works perfectly fine. There might possibly be a slight additional delay between tracks as compared to foreground playback, but playback of the next track eventually always successfully resumes.

However it's quite possible that the behaviour here is significantly being influenced by the actual Android version and (due to additional manufacturer customisations in that area) specific device.

Device name

No response

Android version

various versions between 10 and 12

Firefox release type

Firefox

Firefox version

current(ish)

Device logs

No response

Additional information

Report 1:

I checked with my Samsung Android 9 tablet, which runs One UI 1.1 and the
background playlists work, though it took literally about a minute. My
Samsung Android 12 phone with One UI 4.1 does not work.

Report 2:

I have the same issue with my LG v35 (android 10) and on a Motorola g52 (android 12 I think). I have the issue on Firefox and Firefox nightly
On my LG I added Firefox to the battery exception list, so in theory android shouldn't throttle the app, so I guess it might be coming from firefox

On my old Motorola G4 Play with Android 6.0.1, things also work perfectly fine.

┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

… though on testing again, even on my old phone the delays can sometimes be positively enormous (several minutes), at least when the screen is off. All-in-all I still suspect that we're de-prioritising/throttling background tabs too soon after media playback stops, so the code for changing to the next playlist track gets stuck in throttling limbo and maybe Android decides to kill off that "unimportant" tab process right at that moment on top.

I have this problem too, I also posted a ticket with steps to reproduce this error in this link: https://bugzilla.mozilla.org/show_bug.cgi?id=1827371
A solution should be found.

Flags: needinfo?(mlobontiuroman)
Flags: needinfo?(cpeterson)
Flags: needinfo?(mlobontiuroman)

(In reply to eclaudiu64 from comment #2)

I have this problem too, I also posted a ticket with steps to reproduce this error in this link: https://bugzilla.mozilla.org/show_bug.cgi?id=1827371

Thanks. I think this bug might be related, so I'll link the two bug reports.

Flags: needinfo?(cpeterson)
See Also: → 1827583

(In reply to Chris Peterson [:cpeterson] from comment #3)

(In reply to eclaudiu64 from comment #2)

I have this problem too, I also posted a ticket with steps to reproduce this error in this link: https://bugzilla.mozilla.org/show_bug.cgi?id=1827371

Thanks. I think this bug might be related, so I'll link the two bug reports.

It can be revised, because this ticket was not related to the Picture-in-Picture error on Youtube, which has been resolved. This ticket is for improving phone screen off background playback on YouTube (mobile and web) and other sites that don't support background playback. Maybe you can put my ticket and this one in one ticket and work on this issue? Thank you !

Flags: needinfo?(cpeterson)
Flags: needinfo?(cpeterson)
See Also: 1827583
Severity: -- → S4
Priority: -- → P5
See Also: → 1827371
You need to log in before you can comment on or make changes to this bug.