Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Rotate in full screen is not supported Android #524

Open
AdhamMahmoud98 opened this issue Jul 26, 2021 · 0 comments
Open

Auto Rotate in full screen is not supported Android #524

AdhamMahmoud98 opened this issue Jul 26, 2021 · 0 comments

Comments

@AdhamMahmoud98
Copy link

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.

@AdhamMahmoud98 AdhamMahmoud98 changed the title Auto Rotate is not supported Android Auto Rotate in full screen is not supported Android Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@AdhamMahmoud98 and others