expo-video-player icon indicating copy to clipboard operation
expo-video-player copied to clipboard

Is it possible to have more control on event ExitFullScreen ?

Open MonsieurBuffle opened this issue 5 years ago • 1 comments

Hi guys !, I'm developing an application with some videos in it. Thanks to you, we have a pretty simple way to handle videos :)

Problem My application was designed and locked is PORTRAIT mode. When someone wants to see a video in fullscreen and when he clicks on the fullscreen button, I have to change the screen orientation behavior (thanks too the ScreenOrientation API exposed by expo :D ). It's pretty ok to enter in fullscreen mode, but when the user click on the button to exit fullscreen mode, the video is exiting, and just quickly after it, we can see the application switching from landscape to portrait. It's pretty ugly :/

Describe the solution you'd like Is it possible to listen the "click" on the ExitFullscreen button, to change the orientation before the video really exit fullscreen mode ?

Describe alternatives you've considered I didn't find alternatives, or different way to handle my problem :/

Additional context Working with:

  • Expo sdk 36.0.0
  • expo-video-player 1.5.7

Thanks ! :)

MonsieurBuffle avatar Feb 24 '20 19:02 MonsieurBuffle

Hi, right now there is no way to detect the behaviour you want to archieve. (I have the same problem also in my app :D.)

I do not have plans to implementing this feature to the library soon, but I am open for any PRs.

I will leave this open for now.

ihmpavel avatar Feb 24 '20 19:02 ihmpavel