Feature request: True FullScreen mode for Android with ExoPlayer
See original GitHub issueCurrent behavior
The lib. does not support a full screen mode for Android at this moment. Only disabling status bar and buttons bar, with method ReactExoplayerView.setFullscreen but that is far from what a full functional full screen.
Expected behavior
Full screen mode should work in a similar way with what we have on iOS. The Video element should be re-parented to a new native view that will cover existing app content, like a full screen modal. This should also include all common controls: video scrubbing, volume controls, change aspect ratio + exit full screen.
This should work for Android ExoPlayer together with or without option useTextureView
.
A good starting point I have found is this answer https://stackoverflow.com/a/48511657. I say approach no. 1 would work ok, even if it has some compromises for Android < 6 (API 23). And also using SimpleExoPlayerView (or new PlayerView) for a full screen transition I guess is a good option.
Not to say that we really do need this feature in our app, but I would like to hear other opinions, and why not volunteers to implement it.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:5 (2 by maintainers)
Opened a PR (#1730) for full-screen support in Android Exoplayer.
You might have a look at my repo. I fork and upgraded react-native-video-player so that it now support react-native-video 4.4.0. Feel free to give it a try.
Because here, @IbrahimSulai is working on a build-in Fullscreen functionality, you can take my solution as temporary workaround