kohii
kohii copied to clipboard
Fragment onHiddenChanged doesn't trigger playback pause
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.
@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.