Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

works for a few mins then stops consistently #39

Open
WabbajackWabbajack opened this issue May 19, 2023 · 9 comments
Open

works for a few mins then stops consistently #39

WabbajackWabbajack opened this issue May 19, 2023 · 9 comments

Comments

@WabbajackWabbajack
Copy link

Hi I'm on Android 13, oneUI 5.1 Samsung and only have partially working addon, it plays in the background for a few minutes and then will stop, it immediately resumes when I return focus to the firefox tab that the video is playing in, I can see the buffering circle when I come back to the tab almost as if it's refusing to buffer unless I return to the video

@WabbajackWabbajack
Copy link
Author

Installed Firefox yesterday so it should be the most recent build. Regular ff not the nightly.

@buttercookie42
Copy link
Collaborator

Does Firefox's media playback notification appear in these cases?

@WabbajackWabbajack
Copy link
Author

WabbajackWabbajack commented May 20, 2023

Does Firefox's media playback notification appear in these cases?

Nope not a single notification that I've noticed, it seems to happen after exactly 5mins, tried on an older Motorolla phone with Android 10 as well and got similar behavior

@claudiu64
Copy link

claudiu64 commented May 29, 2023

@buttercookie42 This issue is identical to the following tickets in Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1827371 and https://bugzilla.mozilla.org/show_bug.cgi?id=1812957
And on top of that there is an issue with media notification on YouTube which is being fixed here: https://bugzilla.mozilla.org/show_bug.cgi?id=1827583

@buttercookie42
Copy link
Collaborator

With Youtube it's always a bit hard to tell because they could also simply slowly be rolling out a breaking change, but yes, in that case bug 1827583 is the more likely culprit.

@claudiu64
Copy link

claudiu64 commented May 30, 2023

With Youtube it's always a bit hard to tell because they could also simply slowly be rolling out a breaking change, but yes, in that case bug 1827583 is the more likely culprit.

@buttercookie42 Maybe you can change it in the addon to optimize the background playback with the screen off on YouTube. At this time, even if Battery Saver and other battery settings are disabled, some YouTube categories cannot be played in the background with the screen off and the add-on enabled. The next video playback still doesn't work automatically with the screen off, I detailed that in my ticket here: https://bugzilla.mozilla.org/show_bug.cgi?id=1827371

@buttercookie42
Copy link
Collaborator

Add-ons have no control over

a) Firefox throttling background tabs, or
b) Android throttling background Firefox

Any issues in those areas need to be fixed in Firefox itself (and in the worst case, some issues relating to b) might not even be fixable in Firefox itself because they're under exclusive control of Android).

@mxr576
Copy link

mxr576 commented Mar 2, 2024

Is this a valuable input to solve the riddle?

https://addons.mozilla.org/en-US/firefox/addon/video-background-play-fix/reviews/2044483/

If not, how can anybody help with using ADB?

@buttercookie42
Copy link
Collaborator

Thanks, that's an interesting clue, although… I still can't reproduce the issue on my phone. I've tested two approximately 11 or 12 minute long videos that according to the page source definitely are "Category: Music" (and from an official artist's channel), and as long as I'm only playing back a single track, everything still worked fine.

(If I try a playlist or leave autoplay enabled, I'm hitting https://bugzilla.mozilla.org/show_bug.cgi?id=1878115, but that's a clear Firefox bug.)

Then we've had the mystery report in issue #45, where the issue supposedly happened even for single videos with definitely no autoplay/playlists involved, and where disabling battery optimisations for Firefox solved the issue, but it remains a mystery why exactly that helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants