AVPlayerLayer isn't showing AVPlayer video?
问题 What's the trick to getting AVPlayer video content to show up in one's view? We are using the following AVPlayer code but nothing is appearing on screen. We know the video is there because we were able to show it using an MPMoviePlayerController. Here is the code we are using: AVAsset *asset = [AVAsset assetWithURL:videoTempURL]; AVPlayerItem *item = [[AVPlayerItem alloc] initWithAsset:asset]; AVPlayer *player = [[AVPlayer alloc] initWithPlayerItem:item]; player.actionAtItemEnd =