开发者

Play youtube video in iPhone application

I have been trying to figure out how to play a youtube video in an my application without leaving and going to the YouTube App. I have read to embed it into a UIWebView and I tried that but I did not have any success with that at all.

I did something like the following

<html>
<body>
<iframe width="560" height="345" src="http://www.youtube.com/embed/q5WBsBDXqDs?rel=0" frameborder="0" allowfullscreen></iframe>
</body>
</html>

开发者_JAVA技巧I even tried using the old embed function, but it is not working for me at all. Does anyone have any suggestions? Thanks in advance!

Edit: I tried it in the the browser and it works just fine, but it does not work in the UIWebView! This is frustrating as to why it does not work.


Three20 has support for youtube "views":

http://three20.info/

http://api.three20.info/interface_t_t_you_tube_view.php


http://iphoneincubator.com/blog/windows-views/360idev-iphone-developers-conference-presentation

For reference: http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html

Here is another one http://www.iphonedevsdk.com/forum/iphone-sdk-development/61447-how-play-youtube-movie.html

I believe this should be enough.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜