One live stream at a time

Hello guys! I already tried wowza engine and I can say that it is cool and I want to use it for my mobile product. So to be clearly i want to tell a litle bit about my app workflow. I want to create application in which users can do live broadcasting ant translate it to all other app users, but at a time should be only one broadcasting, so if someone already start broadcast then other users shouldn’t be able to start their broadcasts, they will be able to do it only after previous broadcast will finished.

So I have a question about best techical solution for my case.

I suppose I can use the same user account and the same stream name on all user devices and just check if no other live stream (by REST API) before user will start him stream.

How do it best?

Thanks!

Hello there and welcome to the Wowza support forum.

Take a look at this module:

How to limit publishing of live stream by IP list

You can modify it to suit your needs.

See the Connectioncounts HTTPProvider source for a way to get a count of the currently published streams.

Something like this:

List<String> publishStreams = appInstance.getStreams().getPublishStreamNames();
if (publishStreams.size() > 3) reject = true;

And you can remap the published stream’s name with this module:

How to override publish to remap a stream name

If you feel like you need assistance with this you can post a request for hire to the find a consultant forum

Regards,

Salvadore