0

由于某种原因,setcurrentPlayback方法不起作用。感谢您的任何想法...

-(IBAction)abspielen:(id)sender {

  NSString *titleOfButton = [sender titleForState:UIControlStateNormal];
  NSBundle *bundle = [NSBundle mainBundle];
  NSString *moviePath = [bundle pathForResource:titleOfButton ofType:@"mov"];
  NSURL *movieURL = [ NSURL fileURLWithPath:moviePath];

  MPMoviePlayerController *themovie = 
        [[MPMoviePlayerController alloc]initWithContentURL: movieURL];   

  [themovie play];

  [themovie setCurrentPlaybackRate:2.f];  

  [themovie release];

  MPMoviePlayerViewController *moviePlayer = 
     [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL];
  [self presentMoviePlayerViewControllerAnimated:moviePlayer];

  [moviePlayer release];


}
4

1 回答 1

0

添加行

themovie.rate=2.f;

insted of [themovie setCurrentPlaybackRate:2.f];line 可能是它的工作....

有时在使用 HTML 博客时,这种方法不起作用,所以只需尝试给出 1 行

可能对你有用.... :-)

于 2012-04-21T11:21:37.193 回答