【发布时间】:2016-08-17 17:14:26
【问题描述】:
我正在尝试为我的 iPad 应用设置画中画,并且我有一个自定义视频播放器,因此我遵循以下示例代码:https://developer.apple.com/library/ios/samplecode/AVFoundationPiPPlayer/Introduction/Intro.html
我在 Objective-C 中实现这一点,下面的第二行代码给出了错误“在 AVPictureInPictureController 类型的对象上找不到属性 isPictureInPictureSupported。
AVPictureInPictureController *controller = [[AVPictureInPictureController alloc]init];
if (controller.isPictureInPictureSupported) {
【问题讨论】:
标签: objective-c xcode avplayer avplayerlayer picture-in-picture