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

Fragment onHiddenChanged doesn't trigger playback pause #141

Open
viktorisacenko opened this issue Feb 18, 2021 · 1 comment
Open

Fragment onHiddenChanged doesn't trigger playback pause #141

viktorisacenko opened this issue Feb 18, 2021 · 1 comment

Comments

@viktorisacenko
Copy link

viktorisacenko commented Feb 18, 2021

Hey, nice work!

I got a problem when fragment is hidden (onHiddenChanged = true), the video playback doesnt trigger and dont pause the video.
Is this a normal behaviour or how can i fix it?
I want to stop a video if the fragment is in background but not paused, only hidden.

@eneim
Copy link
Owner

eneim commented Mar 9, 2021

@viktorisacenko You can manually pause the auto playback by calling kohii.lockManager(manager) and resume the auto playback by calling kohii.unlockManager(manager). I think it is not trivial to catch the callback, but I will see what I can do.

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