AVPlayer *player = [AVPlayer playerWithURL:[NSURL URLWithString:@"http://flv2.bn.netease.com/videolib3/1511/30/wvCOz5519/SD/wvCOz5519-mobile.mp4"]]; //视频展示涂层 AVPlayerLayer *playLayer = [AVPlayerLayer playerLayerWithPlayer:self.player]; //设置涂层的 frame playLayer.frame = self.view.bounds; //把视频展示涂层添加进 self.view 内部 [self.view.layer addSublayer:playLayer]; //如果是音频, 可以直接播放 [self.player play];