我们有一个播放流的MPMoviePlayer。这很好用,但我们有两个问题:
我们已实施以下方法:
- (void) movieFinishedCallback:(NSNotification*) aNotification
{
MPMoviePlayerController *player = [aNotification object];
[[NSNotificationCenter defaultCenter]
removeObserver:self
name:MPMoviePlayerPlaybackDidFinishNotification
object:player];
[player stop];
[[UIApplication sharedApplication] setStatusBarHidden:NO];
self.view.hidden = YES;
[player release];
}
我们缺少什么?
提前致谢!
答案 0 :(得分:0)
在“停止”之前添加“暂停”,如下所示:
[player pause];
[player stop];