1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Embed YouTube Video in Application

Discussion in 'Mac Programming' started by Blakeasd, Feb 16, 2013.

  1. macrumors 6502a


    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?

  2. macrumors regular

    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.
  3. macrumors 6502a

    Thank You!

Share This Page