答えて

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と同じ通知

関連する問題