私はMPMoviePlayerControllerを使用してビデオを再生しました。ただし、2倍速でビデオを再生する方法/プロパティはありません。
2倍速でビデオを再生する他の方法はありますか?
私はこの方法を使ってビデオを再生しました。
-(void)playMovie:(NSString *)fileName
{
NSLog(@" File name :: %@",fileName);
NSBundle *bundle = [NSBundle mainBundle];
NSString *moviePath = [bundle pathForResource:fileName ofType:@"mp4"];
NSLog(@"\n\n moviePath :: %@",moviePath);
NSURL *url = [[NSURL fileURLWithPath:moviePath] retain];
moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];
moviePlayer.controlStyle = MPMovieControlStyleDefault;
moviePlayer.shouldAutoplay = YES;
moviePlayer.view.frame = [[UIScreen mainScreen] applicationFrame];
[moviePlayer.view setFrame:playVideoView.bounds];
[playVideoView addSubview:moviePlayer.view];
[moviePlayer setFullscreen:YES animated:YES];
}