0

之前工作正常,但由于某种原因,我遇到了所有这些问题。URL 正确,适用于 MP4 文件。

代码:

[movieView.moviePlayer setContentURL:videoLink];
[movieView.moviePlayer prepareToPlay];
[self presentViewController:movieView animated:YES completion:nil];

日志:

   <Error>: CGContextSaveGState: invalid context 0x0
   <Error>: CGContextClipToRect: invalid context 0x0
   <Error>: CGContextTranslateCTM: invalid context 0x0
   <Error>: CGContextDrawShading: invalid context 0x0
   <Error>: CGContextRestoreGState: invalid context 0x0

编辑

看起来 CGContext 错误是框架中的一个错误,所以不需要做太多的事情。但仍然不明白“正在加载..”错误。我已经验证了这些 URL,它们都可以在网络浏览器上正常播放视频。记录电影播放器​​的 URL 会显示正确的 URL。想法?

4

1 回答 1

0

事实证明,播放的问题是我的可达性方法没有检测到低连接性。

于 2013-04-02T04:29:41.150 回答