views:

79

answers:

2

I want to integrate the youtube API into my app, how can i do it???

p.s. I'm making an app for a youtube channel. I tried opening youtube in a webview, but this made everything even worse because the user could see the youtube controls (search etc.) and that strange message about the "youtube iphone app".

A: 

This is a wild guess b/c I havent done anything like this before but have you tried just passing the YouTube URL for a video to the MPMoviePlayer?

Cliff
I tried the MoviePlayer sample from apple. When i press play movie it says: The server is not currently configured. I believe that the API is the only way... Thanks anyways! :)
DailyDoggy
+2  A: 

You might do well to read the YouTube API documentation. If it's like the rest of Google's APIs its probably pretty straightforward. And for further reading: YouTube and iPhone

joelm
Thanks this helped alot, but where can i download that youtube stuff for my app???
DailyDoggy
Not sure you understand, DailyDoggy... read the part about "Method 2: Embed the YouTube player in a UIWebView" ..the UIWebView will take care of everything for you. There's nothing extra to download into your app.
iWasRobbed