在iPad上全屏启动YTPlayerView [英] Start YTPlayerView in full screen on iPad

查看:217
本文介绍了在iPad上全屏启动YTPlayerView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Youtube提供的YTPlayerView iOS类,你可以查看它这里

I am using YTPlayerView iOS class which is provided by Youtube and you can check it here.

问题如下:在iPhone上,视频会自动以全屏模式启动,而在iPad上却没有,我需要全部启动它屏幕默认情况下。

The problem is the following: on iPhone the video automatically starts in full screen while on iPad it doesn't, and I need to start it in full screen by default.

推荐答案

对于任何遇到此问题的人,我通过删除此类并使用XCDYoutubeKit解决了它,它解决了我的问题,但我不得不放弃使用我的播放器的单独UI。

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

它也可以通过cocoapods获得

It's also available through cocoapods

这篇关于在iPad上全屏启动YTPlayerView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆