我正试着在AVPlayerViewController中播放一个远程AVPlayerViewController视频
self.vcVideo = [[AVPlayerViewController alloc] init];
self.vcVideo.player = [AVPlayer playerWithURL:[NSURL URLWithString:videoURL]];
[self presentViewController:self.vcVideo animated:YES completion:^{
[self.vcVideo.player play];
}];显示视图控制器,但禁用播放按钮:

这是在iOS 9上。
发布于 2016-03-16 18:52:57
在iOS9中,安全策略是更改的。在您的日志中,您应该会看到一些关于安全性的内容。我相信您的远程视频网址是http而不是https。您应该将这些行添加到plist文件中。
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>https://stackoverflow.com/questions/36044314
复制相似问题