YouTube Streaming API 表示用户未启用实时流式传输 [英] YouTube Streaming API says user is not enabled for live streaming

查看:12
本文介绍了YouTube Streaming API 表示用户未启用实时流式传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Google 的 YouTube API Explorer(替代)查找属于其他人的任意流媒体广播的信息.

I'm using Google's YouTube API Explorer (alternate) to look up information on an arbitrary streaming broadcast belonging to someone else.

无论我在 id 字段中输入什么,我都会返回

No matter what I put into the id field, I always get back

{
    "error": {
        "errors": [{
            "domain": "youtube.liveBroadcast",
            "reason": "liveStreamingNotEnabled",
            "message": "The user is not enabled for live streaming.",
            "extendedHelp": "https://www.youtube.com/features"
         }],
         "code": 403,
         "message": "The user is not enabled for live streaming."
    }
}

考虑到视频显然是流式传输,这似乎很荒谬.

This seems ridiculous, considering that the video is plainly streaming.

我突然想到我可能误解了 id 字段的说明,因此我尝试了几种不同的可能性.其中包括...

It occurred to me that I might have misunderstood the instructions for the id field, so I've tried a couple different possibilities. These include...

  • 频道 ID (UCHZoP1Jy-g_h3sqzScrOEwQ)
  • 用户 ID (GWTV)
  • 视频 ID (J_RrkyIOVhg)

...每个都无济于事.

...each to no avail.

如何向频道询问其直播视频?这个问题过去会回答这个问题,但评论表明答案不再有效.这个问题也没有任何帮助.

How can I ask a channel about its live streaming videos? This question would have answered that in the past, but the comments indicate that the answer no longer works. This question wasn't really any help either.

推荐答案

Errors 标题 API 文档有这个有趣的图表:

The Errors heading of the API documentation has this interesting chart:

<头> 找到更多信息
错误类型错误详情说明
insufficientPermissionsinsufficientLivePermissions请求无权取回直播
insufficientPermissionsliveStreamingNotEnabled
(这是我遇到的错误.)
授权请求的用户无法在 YouTube 上流式传输实时视频.用户可以在 https://www.youtube.com/features

这意味着因为 我的 帐户未启用直播,所以我无法在 API 中查看任何人其他人的直播信息,即使我可以拉取它在浏览器中.

which implies that because my account is not enabled for live streaming, I can't look at anyone else's live stream information in the API, even if I can pull it up in the browser.

这似乎有点武断,但我在原始问题中遇到的错误原来是权限问题.请注意,即使为我自己启用了直播,仍然无法获得有用的数据第三方流,因为 Google 不允许 检查不是您的用户的 Live Streaming API.

This seems kind of arbitrary, but the error I got in the original question turned out to be the permissions problem. Note that even after enabling live streaming for myself, I still can't get useful data for third-party streams because Google does not allow checking the Live Streaming API for users that are not you.

这篇关于YouTube Streaming API 表示用户未启用实时流式传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆