如何在API Resopnse中显示此类型的视频链接。我想使用webview或MPMoviePlayerController
来显示视频链接
<iframe width=\"100%\" height=\"100%\"\r\nsrc=\"https://www.youtube.com/embed/XGSy3_Czz8k?autoplay=1\">\r\n</iframe>
答案 0 :(得分:0)
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:url]];
player.view.frame = CGRectMake(184, 200, 400, 300);
[self.view addSubview:player.view];
[player play];
这可能对你有所帮助。