【问题标题】:get the title on live video in youtube using API YouTube V3使用 API YouTube V3 在 youtube 上获取实时视频的标题
【发布时间】:2018-01-30 14:59:10
【问题描述】:
我正在使用 API Live Streaming youtube 使用 id_video 检索 youtube 视频上的实时聊天消息列表,退出此资源中出现的多个属性,例如我可以从中找到它们的 sn-p.liveChatId、sn-p.displayMessage这个资源,
所以我的问题是如何在不适合我的 youtube 频道中获得直播视频的标题?
谢谢
【问题讨论】:
标签:
youtube
google-api
youtube-api
google-oauth
youtube-data-api
【解决方案1】:
您可能想查看此documentation。 items[] 属性将返回符合请求条件的直播流列表。
{
...
},
"items": [
liveStream Resource
]
}
以下 JSON 结构显示了liveStreams resource 的格式:
{
"kind": "youtube#liveStream",
"etag": etag,
"id": string,
"snippet": {
"publishedAt": datetime,
"channelId": string,
"title": string,
"description": string,
"isDefaultStream": boolean
},
...
}