我有以下代码用于播放影片剪辑的选定部分。电影播放没问题。但是洗涤条不能反映正确的启动停止时间。此外,前进和后退按钮使剪辑超出指定的段。为什么这样,我们能解决它吗?
TIA。
MPMoviePlayerViewController *mp =
[[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL fileURLWithPath:movieFile] ];
[mp.moviePlayer setInitialPlaybackTime:21];
[mp.moviePlayer setEndPlaybackTime:48];
[self presentMoviePlayerViewControllerAnimated:mp];
[self shouldAutorotateToInterfaceOrientation:YES];
//NSLog(@"Movie Player Controller View = %@", mp.moviePlayer.view);
//NSLog(@"Movie Player Controller Parent View = %@", mp.parentViewController);
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlayBackDidFinish:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:[mp moviePlayer]];
[mp.moviePlayer play];