Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Blakeasd

macrumors 6502a
Original poster
Dec 29, 2009
643
0
Hello,

Does anyone know of a relatively simple way to embed a YouTube video into a Mac Application? For example, this application actually embeds the entire YouTube web player in to the program. I know how to use a WebKit view, but what about isolating just the web player. I looked into YouTube's JSON API, but I'm completely lost. I saw this documentation , but I don't understand how this relates to Objective-C and Cocoa. Could someone please point me in the right direction?

Thanks!
 

Ap0ks

macrumors 6502
Aug 12, 2008
316
93
Cambridge, UK
The easiest way is to create a WebView and use the link from the YouTube API (http://www.youtube.com/embed/VIDEO_ID) as the source URL and it'll load the YouTube video player and the video. You'll need to do more digging/research to make a fully functional YouTube app but just using the link should get you started.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.