How to create and event with multiple cams with youtube-livestreaming-api - youtube-livestreaming-api

I'm trying to use youtube-livestream-api to create an Event and adding cameras.
What I have tried so far is:
1) Create single Broadcast with broadCasts.insert and then bind multiple streams. That didn't work, as I found out in the documentation.
2) Create multiple broadCasts and bind it to every stream, but when I go to the Youtube Content Editor, I see an event for each broadcast. Which is coherent with the documentation about a broadcast = a video.
My question is, is there any way using the API to create a single event with multiple cams, as you do in the Content Creator?

Finally i've found a similar question to this Does the YouTube Data API expose multi-camera livestream functionality?
In short, as is for now, there is no way with youtube API for having multiple cameras per stream.

Related

Assigning webhooks to Firebase Messaging "subscribe to topic" event

In my current project I am using the Kreait Firebase PHP SDK to send out push notifications to Android & iOS devices that have subscribed to notifications on named topics. No issues thus far. However, rather than have fixed topic names I would now like to generate topic names based on the current "condition" of the connecting device. The condition could, for example, be a geographic location.
This is not too difficult either and I have modified my app to handle this. However, in order to put the ability to have such autogenerated topics to use I need to know the topic names on my server so I can send out targeted messages via Kreait. I find Google's Firebase documentation a bit dense at times and have not been able to establish whether it is possible to assign webhooks that get called by Firebase whenever a SubscribeToTopic, UnsubscribeFromTopic event occurs.
A simple question - does FCM even offer anything like this capability? If so, any pointers to the relevant documentation would be much appreciated.
There is no public API to get a list of topic names from Firebase, nor is there a way to hook into the subscription mechanism.
Your best bet is to simply make two calls when a user subscribes to a topic: one to Firebase, and one to your own backend API that keeps a list of active topics/conditions.

Youtube Live-streaming API returns an empty list of streams

I'm trying to make an electron app that will work together with OBS. For this I need the Stream Name from youtube among other things.
But this stream name has proven hard to get from the API.
I'm currently testing it with the python examples on the documentation page.
This is the example that i use.
Before I started, I created a event with all the settings - and I'm able to see the Stream Name/Key on the website.
When I use the API, it just returns an empty list. I'm sure that I do have a stream, and that it's working as I created it myself, and I am streaming to the example view.
However I never get anything from that service. The other services work, like the list broadcasts one, it returns all planned events.
List Broadcasts:
$ python .\list_broadcasts.py
Broadcasts with status 'all':
Test Begivenhed (ib08ZcLQgZA)
List Streams:
$ python .\list_streams.py
Live streams:
The code for the examples can also be found here: https://github.com/youtube/api-samples/tree/master/python
Turns out that when you create a "Broadcast" a random stream is attached. It's impossible to get the key from this stream.
Instead you need to create a new "Stream/Customised Ingestion", this will make it all work, just make sure that your broadcast is attached with the steam.
You can reuse this stream, and that's a good thing for me, as I don't need to change the streaming key all the time.
You can create a new Stream/Customised Ingestion preset in the UI or via the API.

Create a Live Event with a type of "Quick using Google Hangouts On Air" with API

I'd like to create a live broadcast event with a type of Quick (using Hangouts on Air for streaming) using the API. I currently don't see a way to pass that in to the API.
Is that possible?
I have been looking here to try to find a way to pass this in: https://developers.google.com/youtube/v3/live/docs/liveStreams#resource

LiveStreams: list empty result

I'm testing YouTube live streaming API using Java client libraries.
I have a simple project which is basically the copy of ListStreams example taken from here:
https://developers.google.com/youtube/v3/live/code_samples/java#retrieve_a_channel_s_live_video_streams.
I have my application registered in Google developers console. I have created a test public live stream and a test broadcast.
Everything works fine, I can broadcast video from my phone to this live stream.
But when I try to get a list of live streams from my channel I always get an empty result.
The funny thing is that I can successfully retrieve my channel's broadcasts using the LiveBroadcasts.java example.
But no matter what I do the list of streams is always empty.
Did anyone have similar problems ?
Cheers, Dmitry.

Vimeo - videos.getChannels

How can I efficiently retrieve a list of channels that a Vimeo video is listed in from the Advanced Vimeo API?
The Advanced Vimeo API provides the methods channels.addVideo and channels.removeVideo for managing the channels a video belongs to. Also, the channels.getVideos method is provided for retrieving the list of videos belonging to a channel.
However, there is no videos.getChannels method. This means that in order to find all the channels a video is included in one would need to call channels.getVideos (possibly more than once if the channel has more than 50 videos) for each channel of interest. This seems terribly inefficient.
From what I have seen so far it has not been implemented into v1, but will be added into v2. I am still looking to see if there is an alternative
edit*
take a look at this page because they have this method vimeo.channels.getAll
VIMEO
I know this will get you a list of channels, from there I dont know if you can compare that to the video to make a list of channels that the video is in. I'm still looking.