开发者

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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜