最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - How to upload videos to youtube from url - Stack Overflow

programmeradmin2浏览0评论

I have an option for users to share videos. I use to filepicker.io to handle my uploads. I am using zend gdata plugin, it works well for videos stored on my server. But it does not work for videos saved on amazon s3 servers. Can I upload videos on s3 to youtube.

I appreciate any help.

I have an option for users to share videos. I use to filepicker.io to handle my uploads. I am using zend gdata plugin, it works well for videos stored on my server. But it does not work for videos saved on amazon s3 servers. Can I upload videos on s3 to youtube.

I appreciate any help.

Share Improve this question edited Sep 25, 2012 at 11:54 Josh Randall asked Sep 25, 2012 at 11:44 Josh RandallJosh Randall 1,3544 gold badges18 silver badges31 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

The YouTube Data API requires that you send the actual bytes of the video you're uploading as part of the upload request. You can't just provide a reference to a remote URL as part of an upload request and expect the YouTube API servers to retrieve the video file from that URL.

If your video is on Amazon S3 and your code is running from a place that doesn't have direct access to the video file, then you're going to have to download it temporarily to someplace your code does have access to, and then include the video file in your YouTube upload request.

发布评论

评论列表(0)

  1. 暂无评论