YouTube 流媒体 API returns 没有结果

YouTube Streaming API returns no results

我正在使用 Google's YouTube API Explorer (alternate) 查找有关流媒体广播的信息。

无论我在各种“过滤器”字段中输入什么(idbroadcastStatusmine),我总是得到类似

的结果
{
    "kind": "youtube#liveBroadcastListResponse",
    "etag": "\"sGDdEsjSJ_SnACpEvVQ6MtTzkrI/1a_a-Wfcf01HR1raH5I2Na5kI1o\"",
    "pageInfo": {
        "totalResults": 0,
        "resultsPerPage": 5
    },
    "items": [
    ]
} // (The etag changes each time)

考虑到 someone somewhere 显然是流式传输,这似乎很荒谬。

mine=true 没有 return 任何结果是有道理的,因为我从来没有广播过任何东西,但是 broadcastStatus=all 应该给我 一些东西。

出了什么问题?

我知道这是一个老问题,但我昨天遇到了同样的问题,似乎我缺少 broadcastType 参数。

可接受的值为:

all – Return all broadcasts.
event – Return only scheduled event broadcasts.
persistent – Return only persistent broadcasts.

https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/list

所以我的最终请求是这样的:

https://www.googleapis.com/youtube/v3/liveBroadcasts?part=id&mine=true&broadcastType=all

回复a bug report issued by DalmTo, Google has responded by telling us that we are not permitted看其他用户的直播

ma...@google.com<ma...@google.com> Jun 25, 2018 07:11PM

Status: Won't Fix (Intended Behavior)

The Live Streaming API only permits you to list the live broadcasts of the authenticated user.

但是,类似问题的答案可以通过频道页面上的 检索当前正在播放的事件。