YouTube Streaming API says user is not enabled for live streaming

前端 未结 2 1362
挽巷
挽巷 2021-01-19 04:22

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

No matter what I put into the id field

2条回答
  •  醉酒成梦
    2021-01-19 04:59

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

    Error Type | Error Detail                | Description
    -----------+-----------------------------+------------------------------------------
    insuf...ns | insufficientLivePermissions | The request is not authorized to retrieve
               |                             | the live broadcast.
    -----------+-----------------------------+------------------------------------------
    insuf...ns | liveStreamingNotEnabled     | The user that authorized the request is not
               |                             | enabled to stream live video on YouTube.
               |             ^               | The user can find more information at
               |   (I'm getting this one)    | https://www.youtube.com/features.
    

    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.

    This seems kind of arbitrary, but it turned out to be the permissions problem.

    Note that I still can't get useful data.

提交回复
热议问题