NSString *file = [[NSBundle mainBundle]pathForResource:@"hj" ofType:@"mp4"];
AVPlayerViewController *player = [[AVPlayerViewController alloc]init];
player.player = [AVPlayer playerWithURL:[NSURL fileURLWithPath:file]];
[self presentViewController:player animated:YES completion:nil];
[player.playerplay];
网友评论