chewie
chewie copied to clipboard
Why enter and exit fullscreen on web pause video?
When I run example/ in Android and iOS, play video and press fullscreen toggle, the video continues playing, but when I do the same in Web platform the video always pause on enter and exit fullscreen.
I noticied that on PR #810 it is call VideoPlayerController.pause() intentionally, but when I check ChewieController.isPlaying to verify if video is playing and decide continue playing or not it works.
Is there any reason to do that on Web?
i am facing the same issue on android and ios as well
my video pauses when i call the enterFullScreen method on both ios and android
+1
I'm experiencing this issue on web as well, easily reproducible with the sample app. When entering full screen, the video pauses but isPlaying is still true and the play/pause button reflects this, so you have to "pause" and then play to resume playback. When exiting full screen, as previously mentioned, it is coded to pause in this situation while it should be resuming playback after re-initializing if the video had been playing before.
My workaround is to add listeners to determine if the video is playing when entering or exiting full screen. If so when enterting, call play() after a 100 ms delay. If so when exiting, call play() after detecting chewie's auto-pause.