I have an app with fragments and inside those fragments I have frame layout into which I add YouTubePlayerSupportFragment. But when I click full screen then this exception is th
If you want to show full screen, youTubePlayer.setFullscreen(true);
If you want to hide full screen button after full screen or even in the portrait mode the youTubePlayer.setShowFullscreenButton(false);
You can also use PlayerStyle Option, provided in the newest API
YouTubePlayer.PlayerStyle.CHROMELESS
A style that shows no interactive player controls. (No controls)
YouTubePlayer.PlayerStyle.DEFAULT
The default style, showing all interactive controls. (All controls)
YouTubePlayer.PlayerStyle.MINIMAL
A minimal style, showing only a time bar and play/pause controls. (can pause/play Only)