libre-tube / LibreTube

An alternative frontend for YouTube, for Android.
https://libretube.dev
GNU General Public License v3.0
8.48k stars 442 forks source link

Background playback seems to get killed easily #3467

Closed gaining closed 1 year ago

gaining commented 1 year ago

Steps to reproduce

Close all apps, open libretube start playing some chillhop lofi music: https://youtu.be/gwDoRPcPxtc then minimize it. Open a gps app like amigo, osmAnd, google maps or basically any other app like amazon and after a few seconds of using the other app, music from libretube stops playing in the background. Same thing happens in audio only mode

note: The notification control doesn't disappear when the music stops playing when using another app.

Expected behavior

Should continue playing chill lofi music

Actual behavior

background playback stops and I have to open the app again and continue playing

LibreTube version

0.13.1

Android version

Android 10

Other details

On a moto g8 plus phone. 4GB ram

Disabled battery optimizations so that app could continue running in background but no change.

I also tried this with youtube revanced v18.05.40 by j-hc, youtube revanced doesn't quit background playback when another app is running.

Acknowledgements

Bnyro commented 1 year ago

Please use the "Play in background"/"Audio mode" for such purposes.