0

当我在 ios 10.2 上使用以下代码时,

 MPMoviePlayerViewController *c = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieLoadStateDidChange:) name:MPMoviePlayerLoadStateDidChangeNotification object:nil];
   [self.navigationController presentMoviePlayerViewControllerAnimated:c];
    [c.moviePlayer play];

但是当我执行这段代码时,它会自动停止

**MPMoviePlayerViewController *c = [[MPMoviePlayerViewController alloc] initWithContentURL:url];

请帮忙。info.plist 有什么变化吗?

4

0 回答 0