# One live stream at a time

**URL:** <https://community.wowza.com/t/one-live-stream-at-a-time/47157>\
**Category:** Wowza Streaming Engine\
**Created:** [June 15, 2016, 9:25pm UTC](https://community.wowza.com/t/one-live-stream-at-a-time/47157 "2016-06-15T21:25:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sviatoslav\_Belmeha](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Sviatoslav\_Belmeha](https://community.wowza.com/u/Sviatoslav_Belmeha)\
**Post date:** [June 15, 2016, 9:25pm UTC](https://community.wowza.com/t/one-live-stream-at-a-time/47157/1 "2016-06-15T21:25:53Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [June 15, 2016, 4:32pm UTC](https://community.wowza.com/t/one-live-stream-at-a-time/47157/2 "2016-06-15T16:32:54Z")

</div>

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](https://www.wowza.com/docs/how-to-limit-publishing-of-live-streams-by-ip-list)

You can modify it to suit your needs.

See the [Connectioncounts HTTPProvider source](https://www.wowza.com/docs/how-to-get-connection-counts-for-server-applications-application-instances-and-streams-with-an-http-provider) for a way to get a count of the currently published streams.

Something like this:

```auto
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](https://www.wowza.com/docs/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](http://community.wowza.com/c/-/7)

Regards,

Salvadore
