私はendPlaybackTimeに問題があります。 30秒の動画で途中で動画を自動開始して停止しようとしていますMPMoviePlayerController endPlaybackTimeの問題
player = [[MPMoviePlayerController alloc] initWithContentURL:[self urlForVideo:video]];
player.view.frame = [self getVideoCGRect:self.interfaceOrientation];
player.view.backgroundColor = [UIColor clearColor];
player.controlStyle = MPMovieControlStyleNone;
player.shouldAutoplay = NO;
player.scalingMode = MPMovieScalingModeFill;
//-------------------------
player.currentPlaybackTime = 10.0;
player.endPlaybackTime = 18.35;
//---------------------
[self.view addSubview:player.view];
ただし、これは正しい場所で停止したくないようです。それはちょうど最後まで再生し、停止します。どのようなアイデアはなぜですか?
これを解決しましたか? – matt