基于Youtube浏览器的上传API,它去哪个频道?视频密钥在哪里?

时间:2012-03-27 03:28:34

标签: video youtube youtube-api

参考此页面......

https://developers.google.com/youtube/2.0/developers_guide_protocol_browser_based_uploading#Browser_based_uploading

在页面最后一部分的第6点,它说......

The user selects his video and submits the form, sending his video and the upload token directly to YouTube. YouTube verifies the token is valid and adds the video to the user's YouTube channel.

user's YouTube channel是指“上传者”还是“网站所有者”频道?应该是网站所有者吗?

另一件事是......

During this process, YouTube assigns the video a unique ID, which will be used to identify the video on YouTube.

如何获取该唯一ID,以便将来可以通过API修改该视频的标题和说明?

由于

1 个答案:

答案 0 :(得分:0)

您可以在此处查看此过程的示例 http://www.googlecodesamples.com/youtube/php/YouTubeVideoApp/index.php

在此示例中,您可以看到,一旦您成功上传文件,就会返回视频的YouTube广告ID。