1

I trying to find a good way to embed YouTube Videos in my app. I really like the way Instapaper is embedding them but I can't figure out what YouTube Player is being used.

4

1 回答 1

2

您应该尝试使用以下代码在 youtube 应用程序中播放 youtube 视频

    NSString *stringURL = @"http://www.youtube.com/watch?v=qzUXXXXXXXM&feature=youtube_gdata_player";
    NSURL *url = [NSURL URLWithString:stringURL];
    [[UIApplication sharedApplication] openURL:url];

但是,如果您觉得必须在应用程序中播放视频,请查看以下链接

http://www.iphonedevsdk.com/forum/tutorial-discussion/70282-tutorial-embedding-youtube-vids.html

将 YouTube 视频嵌入到

希望这会有所帮助......快乐的编码......

于 2012-06-09T20:11:20.920 回答