MPMoviePlayerController +电影在开始缓冲数据后暂停
在我的应用程序中,我使用 MPMoviePlayerController 从 URL 播放电影。最初 2-4 秒它播放得很好,但之后每次缓冲它都会暂停电影并且我需要手动播放......
shouldAutoplay = YES; is set
我已经使用 loadstate (iDemoPlayer.loadState
) 进行了调试显示值 5(没有关系)
任何人都可以帮助我吗?
谢谢,
萨加尔
In my application I am using MPMoviePlayerController to play movie from URL. initially for 2-4 secs it play well , but after that for each buffering it pauses the movie and Manually I need to play though ....
shouldAutoplay = YES; is set
I have debugged with loadstate (iDemoPlayer.loadState
) it is showing value 5 ( no relation )
can anyone help me on this?
Thanks,
Sagar
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
loadState 是一个位掩码,因此:
您可以侦听 MPMoviePlayerPlaybackDidFinishNotification,并在播放不再停滞时手动开始播放。
loadState is a bitmask, so:
You can listen for the
MPMoviePlayerPlaybackDidFinishNotification
and manually start playback yourself when it's no longer stalled.