4

ムービー クリップの選択した部分を再生するために使用する次のコードがあります。映画は問題なく再生されます。しかし、スクラバー バーは正しい開始停止時間を反映しません。また、早送りボタンと巻き戻しボタンを使用すると、指定したセグメントを超えてクリップを再生できます。これはなぜですか?修正できますか?

ティア。

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];
4

0 に答える 0