【问题标题】: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】:

    您可能想查看此documentationitems[] 属性将返回符合请求条件的直播流列表。

    {
      ...
      },
      "items": [
        liveStream Resource
      ]
    }
    

    以下 JSON 结构显示了liveStreams resource 的格式:

    {
      "kind": "youtube#liveStream",
      "etag": etag,
      "id": string,
      "snippet": {
        "publishedAt": datetime,
        "channelId": string,
        "title": string,
        "description": string,
        "isDefaultStream": boolean
      },
      ...
    }
    

    【讨论】:

      猜你喜欢
      • 2018-06-28
      • 1970-01-01
      • 2017-10-14
      • 2016-10-31
      • 2016-01-17
      • 2015-12-01
      • 2019-07-27
      • 2015-08-29
      • 2013-04-13
      相关资源
      最近更新 更多