1

在我的应用程序中,我使用 MPMoviePlayerController 从 URL 播放电影。最初 2-4 秒它播放良好,但之后每次缓冲它都会暂停电影,但我需要手动播放....

shouldAutoplay = YES; is set 

我已经用 loadstate( iDemoPlayer.loadState) 进行了调试,它显示值 5(没有关系)

谁可以帮我这个事?

谢谢,

萨加尔

4

1 回答 1

0

loadState is a bitmask, so:

loadState = 5 = MPMovieLoadStatePlayable & MPMovieLoadStateStalled

You can listen for the MPMoviePlayerPlaybackDidFinishNotification and manually start playback yourself when it's no longer stalled.

于 2011-06-23T07:16:14.103 回答