开发者

YouTube video in UIWebView

开发者 https://www.devze.com 2023-04-07 21:36 出处:网络
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/\"]]];

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 Pl开发者_Python百科ugin (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 !


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号