iOS AVPlayer 简单应用

//1

    AVPlayerViewController *avvc = [[AVPlayerViewController alloc] init];

    //2

    avvc.player = [[AVPlayer alloc] initWithURL:url];

    //3

    [self presentViewController:avvc animated:YES completion:nil];

 

posted @ 2017-02-08 16:53  紫肜妖迅  阅读(116)  评论(0)    收藏  举报