android - YotubePlayerSupportFragment full screen view in landscape mode -
After
I am trying to show the YouTube player in full screen in landscape mode but it is not working. I put
player.setFullscreenControlFlags (YouTubePlayer.FULLSCREEN_FLAG_CONTROL_ORIENTATION); Player.setFullscreenControlFlags (YouTubePlayer.FULLSCREEN_FLAG_ALWAYS_FULLSCREEN_IN_LANDSCAPE); But the exception is coming:
java.lang.IllegalArgumentException: 10 :: 0 9 .8 9 2: install FULLSCREEN_FLAG_CONTROL_ORIENTATION 03-21 16 FULLSCREEN_FLAG_FULLSCREEN_WHEN_DEVICE_LANDSCAPE set without can not e / AndroidRuntime (15,996): com.google.android.youtube.player.internal.r at $ a.handleMessage (unknown source) < div class = "post-text" itemprop = "text">
flags parameter setFullscreenControlFlags bitmask, so you do a bitwise or of all the flags you want, and to call for Should set them with setFu LlscreenControlFlags instead of using multiple calls
Comments
Post a Comment