代码:
NSString *path = [[NSBundle mainBundle] pathForResource:@"sample" ofType:@"m4v"];
MPMoviePlayerController *video = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:path]];
[video setBackgroundColor:[UIColor blackColor]];
video.scalingMode = MPMovieScalingModeAspectFill;
[[ NSNotificationCenter defaultCenter ] addObserver: self selector: @selector(movieFinishedCallback:) name: MPMoviePlayerPlaybackDidFinishNotification object: aVideo ];
[video play];
....movieFinishedCallback...
[video release];结果:
电影从第10帧开始,然后重置为第0帧,从而产生卡顿效果...
有什么想法吗?
发布于 2009-11-23 07:04:30
尝试以下代码:
movieplayer.initialPlaybackTime = -1;对我很管用!也许这不是同样的问题,但似乎它可能会有所帮助。
祝好运。
https://stackoverflow.com/questions/1250034
复制相似问题