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 YouTube channel, you can view it, use the chat, the live dashboard says everything is fine. So that part is okay. But there is no ping to the PubSubHubbub callback server for new live broadcasts.
However if I change the title or the description in the live dashboard there is a ping for the current live broadcast.
For me it looks like that there is only a "onChange" for live broadcasts, but no "created" ping. Is there anything I can do to get the missing calls for new live broadcasts?
Regards,
wlami
Edit: Once I stop the live broadcast I get two update Pings once the broadcast has been processed and is shown as a video on the channel.
Youtube Notifications via PubSubHubbub states in the docs that this is meant for:
uploads a video updates
a video's title updates
a video's description
No mention of new live broadcast here.
Related
I have developed a program with the youtube api that get all the live chat (Message in live of youtube)
Now, I am looking for that every time there is a new message in the live chat,
This is because I want to create a bot so that when someone puts "Twitter!" the bot responds with my twitter.
Since I couldn't find a stream of the new messages, what I did was get the messages. And then get them back in 10 seconds. And then select the messages that you had not obtained before
I'm trying to use the YouTube API to get my discord bot to send me a message when I post a new video, but since I'm a beginner I do not know how to do this. The idea is that it looks like this: http://prntscr.com/j8je80 , the embed is ready but the api part of youtube is still missing.
You needed to subscribe to push notification.
The YouTube Data API (v3) supports push notifications via
PubSubHubbub, a server-to-server publish/subscribe protocol for
Web-accessible resources. Notifications are pushed out to subscribers
via HTTP webhooks, which is much more efficient than polling-based
solutions. With PubSubHubbub, your server finds out about events in
near real-time, without having to determine the optimal polling
interval or repeatedly fetching data that hasn’t changed.
So these are the following activities that will trigger the push notification:
uploads a video
updates a video's title
updates a video's description
To be able to implement these, there is a step by step explanation on how to subscribe.
I am using cordova ios app for live streaming. I am able to stream video from iphone but when i try to join stream it never calls remoteStreamAddedHandler function to display streaming video.
I am using cordova-plugin-iosrtc plugin. It also shows status that "someone has joined room" but not calling that remoteStreamAddedHandler where i can append video tag from. It is working fine in andriod phone.
Thanks
remoteStreamAddedHandler event is fired when a remote user has already joined the room and published his stream.
On apiRTC tutorial : 11-VIDEO CALL STREAMING, user only subscribe to available streams (there is no video publish)
You need to have an user connected with tutorial 10-GROUP CALL, this user will publish his stream and subscribe to remote streams.
The tutorial 12-GROUP CALL - ADVANCED shows you an advanced sample where user can choose to publish/subscribe streams.
I want to create a basic app that allow users to simply start to broadcast a video through their phone camera (front and back) just by pressing a button.
Does the YouTube live stream API allow me to handle the video streaming process?
If so, is YouTube Live Stream API totally free of charges and will never ask me to pay something if I reach a certain amount of usage?
Creating a Live Event and Live broadcast is language and hardware agnostic, just use YouTube's Live Streaming HTTP API. Read through the Core Concepts and Life of a Broadcast guides.
Your flow might look something like this:
Authenticate the user.
Set up and schedule your Live Broadcast object.
Start your video encoder and create a Live Stream Object.
Bind your Live Stream to your Live Broadcast.
Test to verify your video is going through.
Set your Live Broadcast to Live.
At the conclusion of your event, set your Live Broadcast to Ended.
Note that setting up your encoder is on you. Asking "How do I create an RTMP or DASH video encoder for [hardware or software]" is too broad of a question for Stack Overflow.
The YouTube API is free to use within a specific quota. If you hit that quota limit, there are ways to request additional quota from Google (potentially for a fee).
I answered a similar question about integrating with YouTube's Live Streaming API on iOS here: YouTube live on iOS?
I'd like to livestreaming my lectures to Youtube with youtube-livestreaming-api.
I create new live events when the lectures start and I transit my LiveEvent to completion when the lectures end.
The problem is break-time. when break-time short, I don't need to change or insert LiveStream because the Live Stream is still active even though LiveEvents stop. The problem is when the break-time long, the Live Stream turns to inactive. so I can't transition to testing and live. Is there any way to keep LiveStream active?
Any Suggestion? or Any Idea?
You may use the LiveBroadcasts:transition and should confirm that the value of the status.streamStatus property for the stream bound to your broadcast is active
A liveStream resource contains information about the video stream that you are transmitting to YouTube. The stream provides the content that will be broadcast to YouTube users.
HTTP request
POST https://www.googleapis.com/youtube/v3/liveBroadcasts/transition
Note: This request requires authorization with at least one of the following scopes.
The parameter broadcastStatus identifiees the state of which the broadcast is changing. Note that to transition a broadcast to either the testing or live state. live is visible to its audience. YouTube transmits video to the broadcast's monitor stream and its broadcast stream.