【发布时间】:2012-12-10 16:46:47
【问题描述】:
我发现此代码可以链接到 youtube 应用中的特定视频,但如何向 youtube 用户显示?
我使用此代码显示特定视频:
NSString *stringURL = @"http://www.youtube.com/watch?v=WZH30T99MaM";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
http://www.youtube.com/user/username
和
http://www.youtube.com/channel/channelname+some变量
有人知道怎么做吗?
如果用户没有 ios6 之后可用的 youtube 应用程序怎么办?
【问题讨论】:
-
你不能把stringURL设置为用户url吗?
stringURL = @"http://www.youtube.com/user/username"? -
@MasterRazer:你找到解决方案了吗?我也想在 youtube 应用中加载频道...
-
@FahimParkar 实际上没有。相反,我使用了 Webview 并在我的应用程序中加载了配置文件。对不起,如果这不能帮助你。
-
@MasterRazer : 啊......没关系......现在我正在做同样的事情;)但是寻找一种我可以打开频道的方式,如果 youtube 应用......
-
@FahimParkar I
m annoyed of the youtube app. They do nothing with it. There is actually just the possibility to show a playlist or a specific video...Im 厌倦了这个。希望您的解决方案行之有效。