我有从 YouTube API 获得的 YouTube 视频的 URL。我正在尝试使用 MPMoviePlayerController 播放该视频,但它不适合我。这是我到目前为止所拥有的:
NSURL *url = [NSURL URLWithString:stringURL];
self.movieController = [[MPMoviePlayerController alloc] initWithContentURL:url];
[self.movieController prepareToPlay];
[self.movieController setMovieSourceType:MPMovieSourceTypeStreaming];
[self.movieController setShouldAutoplay:YES];
[self.movieController setControlStyle:MPMovieControlStyleFullscreen];
[self.movieController.view setFrame:self.view.frame];
[self.view addSubview:self.movieController.view];
[self.movieController play];
我究竟做错了什么?