You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
AdhamMahmoud98
changed the title
Auto Rotate is not supported Android
Auto Rotate in full screen is not supported Android
Jul 26, 2021
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.
The text was updated successfully, but these errors were encountered: