回答

16

的MPMoviePlayer 查看控制器是隻是一個包裝給你控制到的MPMoviePlayerController。

MPMoviePlayerViewController擁有自己的MPMoviePlayerController,它發送您需要使用的所有通知。

聽通知如下進行:

// Register for the playback finished notification 
[[NSNotificationCenter defaultCenter] addObserver:self // the object listening/"observing" to the notification 
    selector:@selector(myMovieFinishedCallback:) // method to call when the notification was pushed 
    name:MPMoviePlayerPlaybackDidFinishNotification // notification the observer should listen to 
    object:self.moviePlayerViewController.moviePlayer]; // the object that is passed to the method 

有很多更多的通知,你可以而且應該與工作在MPMoviePlayerController Class Reference

列出因此,基本上,是的 - 你可以使用與MPMoviePlayerController相同的通知