【发布时间】:2018-06-19 13:38:48
【问题描述】:
我想制作一个演示应用程序,只需使用以下示例代码即可播放从网络加载的视频:
- (void)viewDidLoad {
[super viewDidLoad];
NSURL *url = [NSURL URLWithString:@"http://ftp.cp.108tian.com/video/unity_animation.mov"];
AVPlayer *avp = [[AVPlayer alloc]initWithURL:url];
AVPlayerViewController *avpc = [[AVPlayerViewController alloc]init];
avpc.player = avp;
[self presentViewController:avpc animated:YES completion:nil];
}
是的,我添加了AST 以允许HTTP 传输:
但我仍然收到此错误:
发生了什么?以及如何解决这个问题?
【问题讨论】:
标签: ios objective-c avkit