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

Videos start over after Grayjay was minimized for an extended period (experienced with the YouTube plugin) #1620

Open
1 of 3 tasks
PhilC813 opened this issue Dec 18, 2024 · 1 comment
Labels
Bug Something isn't working Core

Comments

@PhilC813
Copy link

PhilC813 commented Dec 18, 2024

What happened?

  1. Make sure all power management is disabled for the Grayjay app so that it will not be killed by the OS once minimized
  2. Start watching a YouTube video (for a few minutes or so).
  3. Pause the video
  4. Minimize the app, and carry on with your day. To make sure to replicate the issue, keep the app minimized for a few hours. (If your OEM's Android build tends to kill background apps, you can try to pin Grayjay in the recent apps menu)
  5. Access the recent apps menu and select Grayjay to put it back to the foreground. It should not require a reload if the OS kept it in memory, and so you should be back on the video where you left off.
  6. Resume the video

If you've followed the steps above, the issue should occur:
The video will play for a short time, and then abruptly restart/replay to the beginning.

(The video player doesn't offer you to resume to the time you were at, so you essentially lose your progress)


Theory as to why this occurs:
The video doesn't manage to keep buffering after the app has been inactive for too long, so it can only play what was preloaded in the cache. Then, reaching the end of the buffer, Grayjay reloads the video from scratch.


Experienced on a REDMAGIC 9 Pro running the latest Android 14 build. I only use the YouTube plugin on Grayjay so it's unclear whether other plugins are also affected.

Grayjay Version

276

What plugins are you seeing the problem on?

Youtube

Plugin Version

219

When do you experience the issue?

  • While logged in
  • While logged out
  • N/A

Relevant log output

No response

@PhilC813 PhilC813 changed the title Videos start over after Grayjay was minimized for some time (experienced with YouTube plugin) Videos start over after Grayjay was minimized for a few hours (experienced with YouTube plugin) Dec 18, 2024
@PhilC813 PhilC813 changed the title Videos start over after Grayjay was minimized for a few hours (experienced with YouTube plugin) Videos start over after Grayjay was minimized for a few hours (experienced with the YouTube plugin) Dec 18, 2024
@PhilC813 PhilC813 changed the title Videos start over after Grayjay was minimized for a few hours (experienced with the YouTube plugin) Videos start over after Grayjay was minimized for an extended period (experienced with the YouTube plugin) Dec 18, 2024
@Zvonimir-FUTO Zvonimir-FUTO added Bug Something isn't working Core labels Dec 19, 2024
@Matti-Koopa
Copy link

Matti-Koopa commented Dec 22, 2024

This happens when you change network (aka from WiFi to mobile) and a video is playing. If you have the app open, you notice it shows the usual "block detected. Attempting iOS bypass" message before restarting the video from the beginning. Of course, if you have the app minimized or the display off you won't even know what happened.

So whatever code this "bypass" executes, it, for some reason, always restarts the video from the beginning. Instead, it should just continue playback from where it was after it does it's "thing" (ideally not even interrupting playback at all).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Core
Projects
None yet
Development

No branches or pull requests

3 participants