Home » Java » java – How I can get current active Live streams list and filter them by description and location-Exceptionshub

java – How I can get current active Live streams list and filter them by description and location-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

JAVA/YouTube API v3

I tried to do this through the developer’s console
and the JSON responce is:

{
 "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."
 }
}

And PopUp that sais:

This error may be due to using an insufficient credential type. Try using OAuth 2.0.

Same response from my code run:

GoogleJsonResponseException code: 403 : The user is not enabled for live streaming.
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
  "code" : 403,
  "errors" : [ {
    "domain" : "youtube.liveBroadcast",
    "message" : "The user is not enabled for live streaming.",
    "reason" : "liveStreamingNotEnabled",
    "extendedHelp" : "https://www.youtube.com/features"
  } ],
  "message" : "The user is not enabled for live streaming."
}

Ok. Thanks a lot to DaImTo!
I just don’t need to use “youtube-livestreaming-api” for that!

How to&Answers:

as per the documentation errors#liveBroadcasts_youtube.liveBroadcasts.transition

from comments actual usage of this api.

The user that authorized the request is not enabled to stream live video on YouTube. The user needs to enable it find more information at youtube.com/features.

The YouTube Live Streaming API lets you create, update, and manage live events on YouTube.