lbry-android icon indicating copy to clipboard operation
lbry-android copied to clipboard

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

Open keikari opened this issue 4 years ago • 10 comments

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

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

keikari avatar Jul 19 '21 17:07 keikari

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

ghost avatar Jul 19 '21 17:07 ghost

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

tzarebczan avatar Jul 20 '21 01:07 tzarebczan

LBRY Android/FDroid version?

kekkyojin avatar Jul 20 '21 10:07 kekkyojin

LBRY android, installed from Playstore

keikari avatar Jul 21 '21 22:07 keikari

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

NostalgicStone avatar Jul 21 '21 22:07 NostalgicStone

LBRY android, installed from Playstore

Latest one?

kekkyojin avatar Jul 26 '21 15:07 kekkyojin

Yes, latest version.

NostalgicStone avatar Jul 26 '21 16:07 NostalgicStone

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.

IanHead avatar Jul 30 '21 03:07 IanHead

Another report of this on Odysee app with:

  • Battery optimization disabled
  • Pixel 4A Android 11
  • Samsung Galaxy S9 with Android 10

tzarebczan avatar Sep 07 '21 20:09 tzarebczan

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

kekkyojin avatar Sep 07 '21 20:09 kekkyojin