react-native-jw-media-player
react-native-jw-media-player copied to clipboard
Full screen does not exit when navigating through deep linking
When the media player is in full screen and React Native deep-linking navigation occurs, the fullscreen video is not removed from the view and the controls go missing.
@dschrimm
Does this happen on iOS or Android, and are you using nativeFullscreen true in your player or is it fullscreen via js styling?
This is happening on iOS. I'm not seeing any difference when using nativeFullScreen=true vs false.
Is this a known-issue? Are there any known resolutions or plan to fix?
Upon further investigation, I see that exitFullScreen happens when backgrounding an app when the media player is full screen, but it does not happen when using react native navigation to navigate to another view. Is there any way to manually trigger exitFullScreen on the media player?
Does the player keep playing on another screen after navigation from the screen with the player? Or just when coming back to the screen where the player is, the player still is in fullscreen?
Is this the scenario:
Screen Arenders a player- Go Into fullscreen
- Navigate to
Screen Band player inScreen Astill plays?
Or:
Screen Arenders a player- Go Into fullscreen
- Navigate to
Screen Band player inScreen Astops playing - Go back to
Screen Aand player is still in fullscreen mode?
Thanks
Using nativeFullScreen has helped us resolve removing the video player from the view, however the entire app remains in fullscreen mode.
For example, the following occurs:
Screen Arenders a player- Go into fullscreen
- Deep-link with React Navigation to
Screen B - App remains in fullscreen mode