我正在使用AvPlayer播放视频文件。
NSString *strURL = @"Some URL";
NSURL *movieURL = [NSURL URLWithString:strURL];
self.p = [AVPlayer playerWithURL:movieURL];
self.controller = [[AVPlayerViewController alloc] init];
self.controller.player = self.p;
[self addChildViewController:self.controller];
[self.view addSubview:self.mp.view];
[self.p play];
这会将默认的AVPlayerViewController添加到AVPlayer。
我注意到如果用户在缓冲区内拖动搜索条。
我的视频播放会立即卡住。在此,用户操作无法恢复视频。
我正在播放HLS文件。你们知道可能导致AVPlayer卡住的原因吗?