Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 16, 2013, 09:11 PM   #1
Blakeasd
macrumors 6502a
 
Join Date: Dec 2009
Embed YouTube Video in Application

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!
Blakeasd is offline   0 Reply With Quote
Old Feb 17, 2013, 11:11 AM   #2
Ap0ks
macrumors regular
 
Join Date: Aug 2008
Location: 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.
Ap0ks is offline   0 Reply With Quote
Old Feb 17, 2013, 12:39 PM   #3
Blakeasd
Thread Starter
macrumors 6502a
 
Join Date: Dec 2009
Thank You!
Blakeasd is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:56 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC