我正在使用YTPlayerView在我的应用中播放嵌入的视频。一切都与ID完美配合,但视频不能与URL一起播放。这是我的代码
-(IBAction)playVideo:(id)sender{
self.playerView.delegate = self;
self.playerView.hidden = false;
[self.playerView loadVideoByURL:@"https://www.youtube.com/watch?v=KWTULSf29Ho" startSeconds:0 suggestedQuality:kYTPlaybackQualitySmall];
}