react-native-jw-media-player icon indicating copy to clipboard operation
react-native-jw-media-player copied to clipboard

Full screen does not exit when navigating through deep linking

Open dschrimm opened this issue 5 years ago • 6 comments

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 avatar Mar 20 '20 19:03 dschrimm

@dschrimm

Does this happen on iOS or Android, and are you using nativeFullscreen true in your player or is it fullscreen via js styling?

chaimPaneth avatar Mar 23 '20 15:03 chaimPaneth

This is happening on iOS. I'm not seeing any difference when using nativeFullScreen=true vs false.

dschrimm avatar Mar 23 '20 16:03 dschrimm

Is this a known-issue? Are there any known resolutions or plan to fix?

dschrimm avatar Mar 26 '20 22:03 dschrimm

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?

dschrimm avatar Apr 02 '20 22:04 dschrimm

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:

  1. Screen A renders a player
  2. Go Into fullscreen
  3. Navigate to Screen B and player in Screen A still plays?

Or:

  1. Screen A renders a player
  2. Go Into fullscreen
  3. Navigate to Screen B and player in Screen A stops playing
  4. Go back to Screen A and player is still in fullscreen mode?

Thanks

chaimPaneth avatar Apr 19 '20 08:04 chaimPaneth

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:

  1. Screen A renders a player
  2. Go into fullscreen
  3. Deep-link with React Navigation to Screen B
  4. App remains in fullscreen mode

dschrimm avatar May 14 '20 00:05 dschrimm