UIWebView中的YouTube视频 [英] YouTube video in UIWebView

查看:57
本文介绍了UIWebView中的YouTube视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了一个UIWebView来显示我的YouTube频道,我正在使用此代码

I have set up a UIWebView to show my YouTube's Channel, I'm using this code

[youTube loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/v/user/MyChannel/"]]];

此功能在我构建并继续使用模拟器时有效,但是当我想在设备上播放视频时,该视频永远不会显示...

This work when I build and go on the simulator but when I want to play a video on my device, the video never show up...

控制台说,当我使用设备编译时

The console say that when I compile with my device

警告:无法读取/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0(9A5313e)/Symbols/System/Library/Internet插件/QuickTime Plugin.webplugin/QuickTime插件的符号(文件未成立).警告:本地没有找到QuickTime Plugin.webplugin/QuickTime插件的副本,该文件是从远程设备上的内存中读取的.这可能会减慢调试会话的速度.

我认为我必须安装QuickTime插件吗?我真的不知道该怎么办.

I think I have to install the QuickTime Plugin ? I don't really know what I have to do..

谢谢!

推荐答案

您正在使用模拟器.模拟器不支持Youtube视频.在设备上测试您的代码.请检查此答案,了解如何正确嵌入youtube视频.将YouTube视频嵌入

You're using a Simulator. Youtube videos are not supported on the simulator. Test yout code out on a device. Please check this answer on how to embbed youtube videos correctly. Embedding YouTube videos on

要实际阅读该频道,我认为您可以将RSS供稿用于您的频道,也可以使用

To actually read the channel, I think you can use either the RSS feed for your channel or the youtube data api and parse this, than let the user choose the sperate Videos

这篇关于UIWebView中的YouTube视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆