YouTube video in UIWebView

我只是一个虾纸丫 提交于 2019-12-11 12:12:10

问题


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

warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0 (9A5313e)/Symbols/System/Library/Internet Plug-Ins/QuickTime Plugin.webplugin/QuickTime Plugin (file not found). warning: No copy of QuickTime Plugin.webplugin/QuickTime Plugin found locally, reading from memory on remote device. This may slow down the debug session.

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

Thanks !


回答1:


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

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



来源:https://stackoverflow.com/questions/7539214/youtube-video-in-uiwebview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!