youtube-livestreaming-api

Youtube live streaming API giving livePermissionBlocked error

╄→尐↘猪︶ㄣ 提交于 2021-02-11 12:20:24
问题 I am trying to setup youtube live streaming APIs using service account delegation. I have done all the necessary steps for service account delegation on my domain. I have a youtube channel owned by a user with email id of this domain name. Channel has more than 10k subscribers and has all the necessary permissions to live stream (I can live stream via youtube studio). While using youtube java APIs, i am getting this error : { "code" : 403, "errors" : [ { "domain" : "youtube.liveBroadcast",

I get a 500 error when I add 'madeForKids' parameter to 'youtube.liveBroadcasts.insert' API

妖精的绣舞 提交于 2021-02-08 05:18:38
问题 I have one question about how to use 'madeForKids' in 'youtube.liveBroadcasts.insert' API. When I don't use this parameter, the user interface of youtube will pop up a window to let me choose wether it is made for kids. I don't want it to show this window. I want to set this value with API. But when I added this parameter, it will always response a 500 error. My codes is based on JS as follows: this.youtube.liveBroadcasts.insert( { auth: this.oauth2Client, part: "snippet,contentDetails,status

I get a 500 error when I add 'madeForKids' parameter to 'youtube.liveBroadcasts.insert' API

狂风中的少年 提交于 2021-02-08 05:18:12
问题 I have one question about how to use 'madeForKids' in 'youtube.liveBroadcasts.insert' API. When I don't use this parameter, the user interface of youtube will pop up a window to let me choose wether it is made for kids. I don't want it to show this window. I want to set this value with API. But when I added this parameter, it will always response a 500 error. My codes is based on JS as follows: this.youtube.liveBroadcasts.insert( { auth: this.oauth2Client, part: "snippet,contentDetails,status

How to get livestream tiny URL with YouTube Data API v3

本秂侑毒 提交于 2021-01-29 07:36:48
问题 function authenticate() { return gapi.auth2.getAuthInstance() .signIn({scope: "https://www.googleapis.com/auth/youtube.readonly"}) .then(function() { console.log("Sign-in successful"); }, function(err) { console.error("Error signing in", err); }); } function loadClient() { gapi.client.setApiKey("YOUR_API_KEY"); return gapi.client.load("https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest") .then(function() { console.log("GAPI client loaded for API"); }, function(err) { console.error(

How to get livestream tiny URL with YouTube Data API v3

点点圈 提交于 2021-01-29 07:31:09
问题 function authenticate() { return gapi.auth2.getAuthInstance() .signIn({scope: "https://www.googleapis.com/auth/youtube.readonly"}) .then(function() { console.log("Sign-in successful"); }, function(err) { console.error("Error signing in", err); }); } function loadClient() { gapi.client.setApiKey("YOUR_API_KEY"); return gapi.client.load("https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest") .then(function() { console.log("GAPI client loaded for API"); }, function(err) { console.error(

Can't get live chat from stream I do not own

谁都会走 提交于 2020-04-11 12:19:08
问题 There is no way for me to use the YouTubeService_V3 API to read the chat messages from a live stream that does not belong to me. I want to have a server receive chat messages from a live stream that I do not own. I am only intending to read this data and not write. I can use YoutubeService/v3/search/list to find live streams if I set EventType to Live and Type to video, and this is pulling up valid live streams when I debug my code. I can't seem to get the LiveChatID from these streams though

Push Notifications for new live broadcasts via PubSubHubbub

流过昼夜 提交于 2020-02-26 08:45:02
问题 I would like to receive notifications on new live broadcasts of YouTube channels. As described in YouTube v3 Push Notifications I've set up a public accessible PubSubHubbub callback server and subscribed to my own YouTube channel where I've tested the callbacks for "normal videos" and for live broadcasts. The subscription returned a HTTP 204 and I am getting pings for new videos changes of videos deletion of vides However I do not get a Ping when a live broadcast starts. It is visible on the

Push Notifications for new live broadcasts via PubSubHubbub

爱⌒轻易说出口 提交于 2020-02-26 08:42:52
问题 I would like to receive notifications on new live broadcasts of YouTube channels. As described in YouTube v3 Push Notifications I've set up a public accessible PubSubHubbub callback server and subscribed to my own YouTube channel where I've tested the callbacks for "normal videos" and for live broadcasts. The subscription returned a HTTP 204 and I am getting pings for new videos changes of videos deletion of vides However I do not get a Ping when a live broadcast starts. It is visible on the

How can I change the stream my event uses via the YouTube live api?

ぃ、小莉子 提交于 2020-01-25 08:53:25
问题 So I have been looking for a way to get the 16 digit stream name from YouTube and i have finally found out how which is via this line of code -> streamName = returnedStream.getCdn().getIngestionInfo().getStreamName(); stream name is just a String If i try use . setStreamName(); , it does not change the stream name. i tried giving the value of my previous stream I created but the same stays the same. If i try use .setStreamName(); , it does not change the stream name. i tried giving the value

Is it possible to allow many users to make live broadcasts using YouTube API and a single account?

末鹿安然 提交于 2020-01-17 04:05:53
问题 I want to make a web application and I want to use YouTube API to allow my users make live broadcasts. Is it necessary that my users log with their Google/YouTube accounts to use the live stream or is it possible to make them use this function without bothering them with this detail? 回答1: In order to create the Live Event and Live Stream objects required for a livestream on YouTube, the user making those requests must be authenticated. From the Docs: Your application must have authorization