How to integrate YouTube API into my iPhone app?

2019-07-04 22:12发布

问题:

I want to integrate the YouTube API into my app, how can I do this?

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".

回答1:

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



回答2:

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?