react-native-video-player
react-native-video-player copied to clipboard
start in Fullscreen-Mode
Hi,
i am not sure, if it is an issue, but i would like to start the videoplayer in Fullscreen mode without having to hit the fullscreen button.
As i was looking through the extended react-native-video module, i found a method
presentFullscreenPlayer();
Unfortunatly, this method is not available, when calling on the react-native-video-player reference
<VideoPlayer ref={r => (this.player = r)} … </VideoPlayer>
componentDidMount(){ if(this.player){ this.player.presentFullscreenPlayer(); } }
Is there any workaround to that or a specific policy i do not know?
Thanks,
Patrick
Nobody wanting this? i tried to modify the sources to call toggleFullScreen() after it has mounted, but he reference is not available before the isPlaying State...
any hint is appreciated!
Any update on this issue? Would be great if there was a fix for this !
Any update on this issue?
I used a setTimeout as a workaround
function onStart(type) {
setTimeout(() => {
player.current.presentFullscreenPlayer()
}, 500)
}
...
<VideoPlayer ... onStart={() => onStart()} />