MPMoviePlayerController中的多个通知

时间:2014-04-08 12:48:15

标签: ios notifications mpmovieplayercontroller

是否可以在MPMoviePlayerController中有两个不同的播放通知?

我想用这些:

[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(moviePlayBackDidFinish:)
                                             name:MPMoviePlayerPlaybackDidFinishNotification
                                           object:self.moviePlayer];

[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(MPMoviePlayerPlaybackDidChange:)
                                             name:MPMoviePlayerPlaybackStateDidChangeNotification
                                           object:self.moviePlayer];

我确实设法让它们工作但是当我一起使用它们时,只调用MPMoviePlayerPlaybackStateDidChangeNotification

请告知。

0 个答案:

没有答案