Youtube Video Upload using javascript

后端 未结 1 430
遇见更好的自我
遇见更好的自我 2021-01-17 00:16

I am trying to make a browser based youtube video uploader using javascript.

I am using sample code from here

After authentication when I upload video, POST

相关标签:
1条回答
  • 2021-01-17 00:37

    There's now support for resumable uploads using CORS in the YouTube Data API v3.

    A rough, but working, example at https://youtube-api-samples.googlecode.com/git/yt-upload-javascript/index.html (source files at https://code.google.com/p/youtube-api-samples/source/browse/#git%2Fyt-upload-javascript) that shows the upload flow, using the Google+ sign-in button to handle OAuth 2 (you can use the normal OAuth 2 browser client flow if you'd prefer) and with a progress indicator. It also shows how you could poll for video processing status following an upload and embed the resulting video on a page once it's been processed.

    0 讨论(0)
提交回复
热议问题