【发布时间】:2020-10-15 21:21:07
【问题描述】:
我正在尝试使用 Youtube LIVE 流 API 插入 LiveBroadcast。
这是我在youtube API docs API 操场上提出的请求。
POST https://www.googleapis.com/youtube/v3/liveBroadcasts?part=snippet%2C%20id%2C%20status%2C%20contentDetails&key=[YOUR_API_KEY] HTTP/1.1
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json
{
"contentDetails": {
"enableClosedCaptions": true,
"enableEmbed": true,
"enableLowLatency": true,
"recordFromStart": true,
"enableAutoStart": true,
"enableAutoStop": true
},
"status": {
"privacyStatus": "public",
"selfDeclaredMadeForKids": true,
"liveBroadcastPriority": "high",
"madeForKids": true
},
"snippet": {
"title": "My broadcasst",
"description": "My Description",
"scheduledStartTime": "2020-06-177T03:48:46.46Z",
"scheduledEndTime": "2020-06-178T11:48:52.52Z"
}
}
我得到的响应是
{
"error": {
"code": 500,
"message": "Internal error encountered.",
"errors": [
{
"message": "Internal error encountered.",
"domain": "global",
"reason": "backendError"
}
],
"status": "INTERNAL"
}
}
任何帮助将不胜感激。提前致谢
【问题讨论】:
标签: android youtube-api youtube-data-api youtube-livestreaming-api