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

Alarm from clock app can make the VOD playback position go back to 0 #587

Open
tuxayo opened this issue Nov 26, 2024 · 3 comments
Open

Alarm from clock app can make the VOD playback position go back to 0 #587

tuxayo opened this issue Nov 26, 2024 · 3 comments

Comments

@tuxayo
Copy link

tuxayo commented Nov 26, 2024

This is likely not related to the case remaining for #350 so better make another ticket.
And neither to the just fixed case of restarting from 0

  1. in clock app (default for lineage OS in my case, com.android.deskclock) start a 2 min timer (likely less would also work)
  2. have a vod with a playback position not 0
  3. play it
  4. pause
  5. lock
  6. wait 2 min
  7. stop the timer alarm
  8. see on the lockscreen that Xtra restarts playing
  9. unlock
  10. Notice that it started from 0
@crackededed
Copy link
Owner

i tried on emulator and stock samsung rom but xtra just stays paused for me. on emulator it seemed like xtra notification showed up briefly but the player was still paused at the same position after unlocking.

@tuxayo
Copy link
Author

tuxayo commented Nov 28, 2024

Thanks a lot for trying, I'll try on an emulator and compare when I can make my android dev env work again after year of disuse. Which version of AOSP did you run on it?

@tuxayo
Copy link
Author

tuxayo commented Nov 28, 2024

Oh wait, if you can't replicate this or the scenario in #350 (comment) maybe it's because your phone has more than enough RAM to not kill apps too quickly!!!
Or that the tuning by Samsung isn't the same on that regard vs the tuning of LineageOS, so even comparing wouldn't help much.
The emulator should have plenty of RAM by itself. And since there aren't other apps used that should help also.

I have a Fairphone 3 with 4 GB of RAM.

I don't know if there is a simple way to limit the RAM of a phone (via adb creating a new file in a text editor with random stuff and doing - select all - copy - paste - repeatedly should yield quickly an insanely large unsaved file)
But regardless maybe the following could be tried if that makes enough sense.

There is already code that detects the phone locking or switching to another app (the switch without triggering picture in picture mode)
Because with my settings, when playing a VOD, the app switches from video to audio only stream (and has to reload) when I lock the phone or switch to another app.
So if that same code could be used when the stream is paused to save the position

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants