带有自定义控件的 AVPlayerController 在 iOS 11 中不起作用

AVPlayerController with custom control not working in iOS 11

提问人:nirav 提问时间:9/27/2017 更新时间:9/27/2017 访问量:287

问:

我正在使用 an 来播放我的本地视频文件。AVPlayerViewController

我还添加了自定义跳过按钮来跳过视频。

我已将其添加为 AVPlayerViewController 视图的子视图

它在iOS 10.3.3之前运行良好,但仅在iOS 11中不起作用。

我的代码:

 [self addChildViewController:avcontroller];
    [avcontroller.view addSubview:_skip];
    [avcontroller.view bringSubviewToFront:_skip];
    [self.view addSubview:avcontroller.view];

帮帮我!

感谢您抽出时间接受采访

iOS iPhone UIBUTTON AVPlayer iOS11

评论

0赞 Milan Nosáľ 9/27/2017
也许你应该详细说明它不起作用意味着什么。崩溃了吗?还是一切看起来都按预期进行,只是没有跳过视频?还是错了?
0赞 Deep Shah 10/22/2017
我面临同样的问题。仍然没有找到解决方案。它完全在iOS 11以下工作。

答: 暂无答案