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.
精彩评论