OGeek|极客世界-中国程序员成长平台

标题: ios - youtube-ios-player-helper 没有像视频播放器控件一样显示 iOS [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 10:56
标题: ios - youtube-ios-player-helper 没有像视频播放器控件一样显示 iOS

我正在使用 https://github.com/youtube/youtube-ios-player-helper在我的应用中播放来自 youtube 的视频。 我还使用不同的 playvars 来控制播放器上显示和不显示的内容。但是我在播放器上看到的控件部分不像 iOS。

enter image description here

我尝试了其他示例应用程序,在那里我可以获得正确的控件。

enter image description here

NSDictionary *playerVars = @{
                                 @"playsinline" : @1,
                                 @"showinfo"0,
                                 @"autohide"1,
                                 @"modestbranding"1
                                 };
[self.playerView loadWithVideoId:self.videoId playerVars:playerVars];

我使用这些变量尝试了其他几个选项,但没有运气。我不确定从应用的角度来看是什么控制了哪些类型的控件。



Best Answer-推荐答案


跟踪问题。这是我为我的应用设置的自定义用户代理,导致 youtube 播放器的行为有所不同。

关于ios - youtube-ios-player-helper 没有像视频播放器控件一样显示 iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32659691/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4