MPMoviePlayerController:回头开始?

时间:2012-06-15 06:07:46

标签: objective-c

如何停止播放视频并重新开始播放?

videoPlayer.currentPlaybackTime = 0.0 ; // This doesnt work as expected. 


[videoPlayer stop]  // Shows just a "blank" page

谢谢,

3 个答案:

答案 0 :(得分:4)

这也适用

videoPlayer.currentPlaybackTime = 0;
[videoPlayer pause];

答案 1 :(得分:1)

做到这一点:

   if(videoPlayer)
   {
      [videoPlayer stop];
      myMoviePlayer.initialPlaybackTime = 0.0;
      [videoPlayer play];
   }

答案 2 :(得分:1)

videoPlayer.currentTime = 0;
[videoPlayer stop];