3

我正在尝试将 aYouTubePlayerSupportFragment放在SlidingDrawer视图中。但是,当它运行时,视频会在 1 秒后停止,并在 LogCat 中发布以下内容:

W/YouTubeAndroidPlayerAPI(1778): YouTube video playback stopped due to unauthorized overlay on top of player. The YouTubePlayerView is obscured by ViewName{41726520 V.E..... ........ 0,0-720,1038 #7f060040 app:id/drawer}. YouTubePlayerView is completely covered, with the distance in px between each edge of the obscuring view and the YouTubePlayerView being: left: 0, top: 241, right: 0, bottom: 392..

打开,SlidingDrawer视频完全可见,没有被遮挡。有谁知道解决这个问题?

谢谢

4

2 回答 2

1

我有同样的问题,我正在改变 YouTubePlayerSupportFragment 的边距,在它起作用之前距离是负的。不知道为什么会发生这种情况。

于 2013-03-26T11:57:38.427 回答
0

来自youtube播放器的文档应该是最顶级的元素,并且最小尺寸为 200*110 dp。如果它更小 - 玩家将停止。如果任何视图(甚至不可见)将与 youtube 播放器重叠 - 播放器将停止

于 2015-09-23T15:36:40.577 回答