kohii icon indicating copy to clipboard operation
kohii copied to clipboard

Fragment onHiddenChanged doesn't trigger playback pause

Open viktorisacenko opened this issue 4 years ago • 1 comments

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 avatar Feb 18 '21 13:02 viktorisacenko

@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.

eneim avatar Mar 09 '21 02:03 eneim