chewie icon indicating copy to clipboard operation
chewie copied to clipboard

Why enter and exit fullscreen on web pause video?

Open magnocasmor opened this issue 1 year ago • 4 comments

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?

magnocasmor avatar Jul 20 '24 23:07 magnocasmor

i am facing the same issue on android and ios as well

khanawansocialb avatar Aug 02 '24 10:08 khanawansocialb

my video pauses when i call the enterFullScreen method on both ios and android

khanawansocialb avatar Aug 02 '24 10:08 khanawansocialb

+1

KyoShio avatar Sep 20 '24 14:09 KyoShio

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.

dbmessina avatar May 01 '25 17:05 dbmessina