视频播放器

_moviePlayer = [[MPMoviePlayerController alloc]initWithContentURL:url];

_moviePlayer.view.frame = self.view.bounds;

_moviePlayer.view.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;

 [self.view addSubview:_moviePlayer.view];

你可能感兴趣的:(视频播放器)