-1

私は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];

}
4

1 に答える 1

3

MPMoviePlayerController次のプロパティを持つMPMediaPlayback プロトコルに準拠しています。

@property(nonatomic) float currentPlaybackRate
于 2013-01-07T05:40:05.883 に答える