davidohayon669/react-native-youtube

Auto Rotate in full screen is not supported Android

Opened this issue · 0 comments

When the video is played in full screen the orientation is fixed in Landscape. If you want to fix the video in portrait mode:
Add this line in the YouTubePlayerController.java in the onInitializationSuccess method under mYouTubePlayer.setOnFullscreenListener(this);

paste this :
mYouTubePlayer.setFullscreenControlFlags(YouTubePlayer.FULLSCREEN_FLAG_CONTROL_SYSTEM_UI);

But this will make the player work in portrait mode only.