//1
AVPlayerViewController *avvc = [[AVPlayerViewController alloc] init];
//2
avvc.player = [[AVPlayer alloc] initWithURL:url];
//3
[self presentViewController:avvc animated:YES completion:nil];
本文共 242 字,大约阅读时间需要 1 分钟。
//1
AVPlayerViewController *avvc = [[AVPlayerViewController alloc] init];
//2
avvc.player = [[AVPlayer alloc] initWithURL:url];
//3
[self presentViewController:avvc animated:YES completion:nil];
转载于:https://www.cnblogs.com/fuxx/p/6378957.html