문제

I have tested and used Google's resumable upload code sample. Based on that, if I use HTML5's upload file API, I would have to upload the file to the server first then post the video's name to Google's resumable upload php file, right? If so, then this would mean a very long upload process because I'm uploading to two servers consecutively.

Hence, my question title. Is it possible? If so, please point me to the right direction or simple tutorials using YouTube API v3 to get started. Thank you very much!

P.s. I've heard of Zend Framework but I don't want to install the whole thing just to use a simple YouTube upload. Please guide me by extending the usage from Google's code sample.

도움이 되었습니까?

해결책

Two possible approaches right now.

  1. Browser based upload via YouTube API v2 (scheduled to be removed april 2015) https://developers.google.com/youtube/2.0/developers_guide_protocol_browser_based_uploading

  2. CORS upload with API v3. SO Question with details

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top