我想创建一个移动应用程序,允许最终用户之间共享视频。我现在对YouTube接口有疑问,因为我的计划是创建YT频道,允许用户在上面上传视频,然后从该频道流传输他们的视频。
这样就可以了吗?如果没有,你能给我推荐一个快速,便宜,易用的文件存储设备吗?我也检查了Dropbox,但是流媒体太慢了。
发布于 2016-08-12 15:02:04
你可以使用YouTube的上传接口(Python sample code here,你也可以通过其他语言和HTTP:API explorer here调用)来上传视频。
upload调用将返回一个包含an id的video resource。然后,您可以使用此ID创建URL以供您的用户共享,或者使用它在your website、Android或iOS应用程序中嵌入视频。
发布于 2016-08-13 02:49:54
您可以发送标识投诉目标的POST请求。提出投诉的用户和合规本身的文本。该请求还可以通过使用具有方案属性值的标记来指定投诉的原因。tags term属性值必须为以下术语之一:
下面的XML演示了如何添加关于视频的投诉。
POST /feeds/api/videos/VIDEO_ID/complaints HTTP/1.1
Host: gdata.youtube.com
Content-Type: application/atom+xml
Content-Length: CONTENT_LENGTH
Authorization: Bearer ACCESS_TOKEN
GData-Version: 2
X-GData-Key: key=DEVELOPER_KEY
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:yt="http://gdata.youtube.com/schemas/2007">
<summary>
Please ignore this complaint. I'm testing a YouTube API and
needed to issue a complaint to test the add complaint function.
Per the value of the category tag, pretend I am complaining
about a video that contains violent or repulsive acts.https://stackoverflow.com/questions/38905386
复制相似问题