【问题标题】:Speed of Videos in iPhone AppiPhone App中的视频速度
【发布时间】:2012-04-20 01:57:40
【问题描述】:

由于某种原因,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];


}

【问题讨论】:

    标签: iphone performance frameworks media-player


    【解决方案1】:

    添加行

    themovie.rate=2.f;
    

    插入[themovie setCurrentPlaybackRate:2.f]; 行 可能是它的工作....

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-09
      • 2015-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-01
      • 1970-01-01
      相关资源
      最近更新 更多