# Control maximum time of a live broadcast

**URL:** <https://community.wowza.com/t/control-maximum-time-of-a-live-broadcast/47002>\
**Category:** Wowza Streaming Engine\
**Created:** [June 28, 2016, 9:47am UTC](https://community.wowza.com/t/control-maximum-time-of-a-live-broadcast/47002 "2016-06-28T09:47:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joarley\_Moraes](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@Joarley\_Moraes](https://community.wowza.com/u/Joarley_Moraes)\
**Post date:** [June 28, 2016, 9:47am UTC](https://community.wowza.com/t/control-maximum-time-of-a-live-broadcast/47002/1 "2016-06-28T09:47:38Z")

</div>

Hey,

Is there any way I can control the maximum time a client can broadcast for a specific stream name ?

I have looked into the following:

> [@Control live-record by limiting duration of streaming video or limiting file size](http://community.wowza.com/t/-/39163):
>
> I have an app that is recording (live-record) users webcam and saving the stream on the server. I would like to control this recording by limiting the duration of recording. For example - set the maximum duration to 1min - after that disconnect the stream and save the video. Or maybe limit the file size. For example disconnect the publishing client, which will stop the stream being recorded, once the file being written by that client’s stream reaches a set size lets say 5Mb. Is that possible?

[https://www.wowza.com/forums/showthread.php?33965-Control-live-record-by-limiting-duration-of-streaming-video](https://www.wowza.com/forums/showthread.php?33965-Control-live-record-by-limiting-duration-of-streaming-video)

But those only cover limiting recording. What I need to achieve is to disconnect the live broadcaster after 4 min of successful publishing.

Any help is appreciated.

Joarley

---

<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 28, 2016, 12:33pm UTC](https://community.wowza.com/t/control-maximum-time-of-a-live-broadcast/47002/2 "2016-06-28T12:33:18Z")

</div>

Take a look at this guide to see if it meets your needs:

[How to disconnect connected clients after a specified time period (TimedDisconnect)](https://www.wowza.com/docs/how-to-disconnect-connected-clients-after-a-specified-time-period-moduletimeddisconnect%28ModuleTimedDisconnect%29)

The source code is made available on GitHub(bottom of the guide: For Developers) if you wish to modify the functionality.

Regards,

Salvadore
