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

Device: (Only Samsung) The background player disappears when the next video or audio is played (Turn off screen) #6801

Open
3 tasks done
Figim opened this issue Nov 20, 2024 · 3 comments
Labels
bug Something isn't working can't reproduce

Comments

@Figim
Copy link

Figim commented Nov 20, 2024

Steps to reproduce

Autoplay countdown on or off. Battery is not optimized. Many apps like NewPipe do not face this problem

  1. Play video or audio
  2. Turn off the screen
  3. After 5 minutes of video, the background player disappears (Or just stopped) when the next video is played. It continues when you open the screen

Expected behavior

Keep the background player on forever open when the screen turns off. Play next videos continuously

Actual behavior

When I turn off the screen and play the next video, the background player disappears. When I opened the screen, the player continued with the start of the video

LibreTube version

0.26.0 Debug

Android version

Multiple

Other details

... This is important because streaming in the background without interruption and with the screen off is always fun.

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
@Figim Figim added the bug Something isn't working label Nov 20, 2024
@0xrxL
Copy link

0xrxL commented Nov 20, 2024

Same story: there's already audio player, if you want to listen something in background.

@Figim
Copy link
Author

Figim commented Nov 21, 2024

Same story: there's already audio player, if you want to listen something in background.

This problem occurs in the audio and video player. Also, the Background Playback was recently fixed, the bug was different

NOTE: This happens because of the break between songs. Then the player is destroyed. Or related content and title update is preventing it

@Figim Figim changed the title The background player disappears when the next video is played (Turn off screen) The background player disappears when the next video or audio is played (Turn off screen) Nov 21, 2024
@Figim
Copy link
Author

Figim commented Nov 25, 2024

**And the notification disappearing when the video is paused on the lock screen is a ram issue. This is fixed when battery optimization is disabled.

Also, the app doesn't play the video because there is a little pause when it plays the next video. This is fixed when LibreTube is added "as an app that never sleeps". However, it may still not work due to interruptions.
** Of course, this happens for a few seconds or exactly 👇The app should work 24/7 as a push notification app

What is the problem?

A feature unique to Samsung:
LibreTube supports this feature, but it has the following problem:

Solution: If I set LibreTube to "never go to sleep", Next video plays. However, after stopping the video on the "lock screen", I need to disable battery optimization for LibreTube so that the player does not disappear after a few minutes. But if battery optimization is disabled, LibreTube doesn't play the next video. Because, my device does not allow to use both options at the same time.

** Solution Result**: So, so that the notification does not disappear, both the battery optimization should be closed and the LibreTube "memory resident app" should be visible. But Samsung blocks it

XRecorder_06122024_114636.mp4

@Figim Figim changed the title The background player disappears when the next video or audio is played (Turn off screen) Device: (Only Samsung) The background player disappears when the next video or audio is played (Turn off screen) Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can't reproduce
Projects
None yet
Development

No branches or pull requests

3 participants