我想使用 javascript youtube API 将视频从我的网页上传到 youtube

2022-01-19 00:00:00 javascript ajax youtube-javascript-api

我想使用 javascript youtube API 将视频从我的网页上传到 youtube,但出现需要用户身份验证",错误 401.

I want to upload a video from my web page to youtube by using javascript youtube API but there is coming "User authentication required", error 401.

谁能帮我做一些 javascript 中的演示示例,它可以从我的网页上传 youtube 上的视频?

Can anyone help me with some demo example in javascript, which can upload a video on youtube from my web page?

推荐答案

Google 发布了几个使用 YouTube API 上传视频的 JavaScript 演示示例:

Google has posted several demo examples in JavaScript of uploading a video to using the YouTube API:

  • http://code.google.com/p/youtube-api-samples/source/browse/#git%2Fyt-upload-javascript
  • https://developers.google.com/youtube/v3/code_samples/javascript
  • https://developers.google.com/youtube/v3/libraries
  • https://developers.google.com/youtube/v3/docs/视频/插入

这就是你要找的吗?

相关文章