Viewpageradapter: Youtube Video Playback Stopped Due To Unauthorized Overlay On Top Of Player
Asking this question because I did not find solution/suggestions after searching for hours. All answered solutions are with Fragment. What I am looking for ViewPagerAdapter and Fra
Solution 1:
fix this by removing the padding in the YouTubePlayerView in the layout. So your layout looks like this:
<com.google.android.youtube.player.YouTubePlayerView
android:id="@+id/video_player"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#000" />
why you are using instantiateItem
instead of getItem
in adapter?
Post a Comment for "Viewpageradapter: Youtube Video Playback Stopped Due To Unauthorized Overlay On Top Of Player"