ViewPagerAdapter: YouTube video playback stopped due to unauthorized overlay on top of player

Deadly 提交于 2019-12-03 17:14:59

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?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!