我遇到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