【问题标题】:Youtube Gaming Live stream statusYoutube Gaming 直播状态
【发布时间】:2016-02-04 12:44:58
【问题描述】:

如何获取 Youtube Gaming 直播状态,无论是直播还是离线? 然后将其转为文本,例如频道离线或频道在线。这不是我的频道。

【问题讨论】:

  • 嘿,我的回答对你有帮助吗?如有任何问题,请随时跟进。

标签: youtube-api youtube-livestreaming-api


【解决方案1】:

如果你想检索另一个频道的广播信息,你必须使用Search/list端点。

part -> snippet

channelId -> [channelId of the channel/user with the live event]

eventType -> live

type -> video(将eventType设置为live时需要)

HTTP GET https://www.googleapis.com/youtube/v3/search?part=snippet&channelId={channelId}&eventType=live&type=video&key={YOUR_API_KEY}

如果用户当前没有流式传输,则 GET 请求将返回零个项目。

【讨论】:

    猜你喜欢
    • 2014-10-16
    • 1970-01-01
    • 2017-01-25
    • 2016-10-01
    • 2022-11-07
    • 2017-07-25
    • 1970-01-01
    • 2017-03-23
    • 2015-08-01
    相关资源
    最近更新 更多