Start YTPlayerView in full screen on iPad

懵懂的女人 提交于 2019-12-06 17:50:27

For anyone who is facing this problem, I solved it by dropping this class and using XCDYoutubeKit, it solved my issue but I had to drop the separate UI where I used my player.

https://github.com/0xced/XCDYouTubeKit

It's also available through cocoapods

Yestay Muratov

Add this code, so on iPhone it will not start to play on full screen:

var playerVars: NSDictionary = ["playsinline" : 1]
self.playerView.loadWithVideoId("6v2L2UGZJAM", playerVars: playerVars)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!