Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to upload video to youtube from an URL

in my app i want to upload an video to youtube. The video is already been placed in another database of an URL. How to upload the video from that url to youtube......

like image 451
arunkumar.p Avatar asked Mar 28 '11 07:03

arunkumar.p


2 Answers

YouTube does not provide an API to upload videos from a URL. You would first have to download the video to your device. Once you have video, the actual file, you can upload the video to YouTube using their API.

You would have use NSURLConnection and or NSURLRequest to upload the video. Browser-based uploading

like image 182
Black Frog Avatar answered Sep 21 '22 02:09

Black Frog


You can use the code in this test application and just change the path of the file from nsString to nsUrl. But you have to use the new version of http://code.google.com/p/gdata-objectivec-client/

Here is a good tutorial. It works like charm. I can now upload video both from the device and an URL.

like image 40
vatti Avatar answered Sep 22 '22 02:09

vatti