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

[Feature request] Prevent video autoplay after it has finished playing in the background #764

Open
2 tasks done
androidkotlindev opened this issue Jan 25, 2025 · 3 comments

Comments

@androidkotlindev
Copy link

Checklist (Your issue will be automatically closed if you delete this part)

  • I make sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I believe this feature request will benefit more than 10% of users, not just myself.

Description
After a video has finished playing in the background and the app is resumed, the same video starts autoplaying. As a byproduct, the viewcount increases.

My proposed fix for this is blocking autoplay if:

  • the video is the latest one in the watch history
  • it has been watched until the very end

In the case this is a platform-specific bug: I use OxygenOS/Android 13

@androidkotlindev
Copy link
Author

androidkotlindev commented Jan 25, 2025

Doesn't seem to affect the app on default settings, guess I'll investigate this more tomorrow.
Nevermind, does still occur if the app is left to idle for >5 minutes.

@androidkotlindev
Copy link
Author

androidkotlindev commented Jan 26, 2025

On an interesting note, the playback is resumed from the time the background player was started (on default settings, at minimize). If the app is never resumed after switching to the background player, the video shows up in the history as only being played up to that point.

The autoplay setting does not have any effect on this, my workaround for this is manually changing to the background player (button under the title).

@InfinityLoop1308
Copy link
Owner

After a video has finished playing in the background and the app is resumed, the same video starts autoplaying.

I can't reproduce it on my devices. Can you provide a screen recording?

As a byproduct, the viewcount increases.

Local viewcount is not accurate due to many restraints. Don't rely on it.

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

No branches or pull requests

2 participants