lbryio / lbry-android

The LBRY Android app
MIT License
2.44k stars 113 forks source link

All videos +15min length, pause randomly when playing on background (on android 11?) #1206

Open keikari opened 3 years ago

keikari commented 3 years ago
## The Issue User has reported videos randomly pausing for every video which is at least 15 mins long. Happens when app is on the background. Doesn't matter if screen on/off Doesn't matter if charging or not Doesn't matter if floating mini player is on/off Had stable and strong WIFI connection "Enable background playback" and "Keep the LBRY service running in the background..." are enabled Didn't happen with any other app User's device: Pixel 4A Android 11 I couldn't reproduce on android 10. Link to the original issue: https://www.reddit.com/r/lbry/comments/om7eqh/lbry_keep_pausing_during_background_play/ ## Internal Use ### Acceptance Criteria 1. 2. 3. ### Definition of Done - [ ] Tested against acceptance criteria - [ ] Tested against the assumptions of the user story - [ ] The project builds without errors - [ ] Unit tests are written and passing - [ ] Tests on devices/browsers listed in the issue have passed - [ ] QA performed & issues resolved - [ ] Refactoring completed - [ ] Any configuration or build changes documented - [ ] Documentation updated - [ ] Peer Code Review performed
ghost commented 3 years ago

Perhaps its related to battery optimizatuon feature? Exclude the app from it and see IF helps

tzarebczan commented 3 years ago

The user said that was turned off. We think it may be related to Android 11.

kekkyojin commented 3 years ago

LBRY Android/FDroid version?

keikari commented 3 years ago

LBRY android, installed from Playstore

NostalgicStone commented 3 years ago

Hello I'm the user who reported this issue. I can confirm that all the details keikari reported are correct. I'd be happy to help in any way I can

kekkyojin commented 3 years ago

LBRY android, installed from Playstore

Latest one?

NostalgicStone commented 3 years ago

Yes, latest version.

IanHead commented 2 years ago

I have experienced the exact same behaviour, on a Razer Phone 1 running Android 9 (Pie). That same phone is now running LineageOS 11, experiencing the same issue. I've been able to reproduce the behaviour from both the Play Store and F-Droid versions of the app.

One thing I will add too is that if a video was running via picture-in-picture, and I check back to find it has stopped playing, I find the floating window is showing the LBRY splash screen where the video would be. Maximising the window seems to make the app start up again and (usually) starts playing the video again from the same place it stopped.

tzarebczan commented 2 years ago

Another report of this on Odysee app with:

kekkyojin commented 2 years ago

This bug is independent of the Android version, as it is also reproduced on my device running Android 8.1.

Furthermore, problem only appears when app is not on picture-in-picture mode