【问题标题】:Is it possible to set the category of a live stream via the YouTube Live Streaming API?是否可以通过 YouTube Live Streaming API 设置直播的类别?
【发布时间】:2021-10-07 23:52:30
【问题描述】:

这在 API 文档中的任何地方都没有显示,但看到制作 API 的是 youtube 开发人员,一定有办法。

【问题讨论】:

    标签: youtube-api youtube-data-api youtube-livestreaming-api


    【解决方案1】:

    可以使用Videos.update API 端点设置直播流的类别,该端点由request body 调用,该端点具有:

    • 其属性 id 设置为该广播的 ID,并且
    • 其属性snippet.categoryId 设置为所需的视频类别ID。

    请注意,根据上面引用的官方文档,snippet.title 也必须设置:

    snippet.title - 仅当请求更新视频资源的 snippet 时才需要此属性。

    【讨论】:

      猜你喜欢
      • 2015-06-05
      • 2020-01-10
      • 2015-05-10
      • 2016-02-26
      • 2017-11-22
      • 2019-06-12
      • 1970-01-01
      • 1970-01-01
      • 2017-01-09
      相关资源
      最近更新 更多