ここでまったく同じ問題を見ましたが、回答がないため、同じ質問をもう一度尋ねます。 AVPlayer が iOS9 で URL からビデオを再生しない ビデオ を再生するためにさまざまな方法を試しましたが、残念ながらうまくいきません。コードは次のとおりです。
AVPlayerViewController *playerViewController = [[AVPlayerViewController alloc] init];
NSString *url = [[NSBundle mainBundle] pathForResource:@"Intro" ofType:@"mp4"];
_asset = [AVURLAsset assetWithURL: [NSURL URLWithString:url]];
_playerItem = [AVPlayerItem playerItemWithAsset: _asset];
_player = [[AVPlayer alloc] initWithPlayerItem: _playerItem];
[playerViewController.view setFrame:_videoView.frame];
playerViewController.showsPlaybackControls = YES;
[_videoView addSubview:playerViewController.view];
playerViewController.player = _player;
[_player play];
これは、上記のコードを使用して現在どのように見えるかのスクリーン ショットです。そして、別の Apple コードを使用してビデオをチェックしたところ、問題なく動作しましたが、単純なことには複雑すぎるため、Apple コードは私には難しすぎます。ここにあります:https://developer.apple.com/library/prerelease/ios/samplecode/AVFoundationSimplePlayer-iOS/