2013-03-31 45 views
0

以前工作正常,但由于某种原因我得到了所有这些问题。 该URL是正确的,适用于MP4文件。iOS 6 - MPMoviePlayerViewController生成CGContext错误,并卡在'正在加载...'

代码:

[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上的错误是在框架中的一个bug,所以不多做那些。但仍不明白'正在加载..'错误。我已经验证了这些网址,并且他们都在网络浏览器上播放了这些视频。并记录电影播放器​​的URL显示正确的。想法?

回答

0

原来回放的问题是连接性低,而我的可达性方法没有检测到。

+1

什么?我有同样的问题。什么解决了它? – myusuf3