同样的代码,模拟器下不工作,真机下可以循环播放。


MPMoviePlayerController *theMovie = [[MPMoviePlayerControlleralloc] initWithContentURL:[NSURLfileURLWithPath:[[NSBundlemainBundle] pathForResource:@"***"ofType:@"mp4"] ]];

theMovie.repeatMode=MPMovieRepeatModeOne;

theMovie.view.frame = self.view.bounds;

[self.view addSubview:theMovie.view];

theMovie.scalingMode = MPMovieScalingModeAspectFill;

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2021-07-24
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2021-10-03
  • 2021-12-23
  • 2021-12-06
  • 2021-08-16
  • 2021-07-23
相关资源
相似解决方案