# Trying to use MediaCaster auto start/stop of stream based on player request

**URL:** <https://community.wowza.com/t/trying-to-use-mediacaster-auto-start-stop-of-stream-based-on-player-request/48221>\
**Category:** Wowza Streaming Engine\
**Created:** [March 4, 2017, 2:41pm UTC](https://community.wowza.com/t/trying-to-use-mediacaster-auto-start-stop-of-stream-based-on-player-request/48221 "2017-03-04T14:41:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avraham\_Rosskamm](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@Avraham\_Rosskamm](https://community.wowza.com/u/Avraham_Rosskamm)\
**Post date:** [March 4, 2017, 2:41pm UTC](https://community.wowza.com/t/trying-to-use-mediacaster-auto-start-stop-of-stream-based-on-player-request/48221/1 "2017-03-04T14:41:56Z")

</div>

I read here: [https://www.wowza.com/docs/how-to-mediacaster-api-to-start-native-rtp-and-mpeg-ts-streams](https://www.wowza.com/docs/how-to-mediacaster-api-to-start-native-rtp-and-mpeg-ts-streams), that

“When using the rtp-live and rtp-live-record stream types, Native RTP and MPEG-TS streams are started and stopped on demand based on client’s viewing the stream. The publishing process is started the first time a client tries to view a stream and stops 60 seconds after the last client has stopped viewing the stream”.

I am using Wowza Stream Manager to manually add a stream.

For example: stream name : ‘test.stream’, which contains link: 'rtsp://localhost:2222/ch1".

However, I need to ‘start’ the stream, before a player can connect to it.

But I want to do this in automated way: that the stream is automatically started when a player connects to stream, and stopped after last player disconnects, automatically.

This way, I will be reducing load on server.

Can anyone suggest how to get this working?

---

<div class="post-metadata">

**Author:** ![Avraham\_Rosskamm](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@Avraham\_Rosskamm](https://community.wowza.com/u/Avraham_Rosskamm)\
**Post date:** [March 7, 2017, 11:25am UTC](https://community.wowza.com/t/trying-to-use-mediacaster-auto-start-stop-of-stream-based-on-player-request/48221/2 "2017-03-07T11:25:14Z")

</div>

_bump_ : need to be clear on this: does Media Caster starts working automatically after we ‘connect’ to a stream, or do we need to implement this in some other way?

Please clear…

---

<div class="post-metadata">

**Author:** ![mone\_hossain3](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mone\_hossain3](https://community.wowza.com/u/mone_hossain3)\
**Post date:** [March 7, 2017, 12:20pm UTC](https://community.wowza.com/t/trying-to-use-mediacaster-auto-start-stop-of-stream-based-on-player-request/48221/3 "2017-03-07T12:20:02Z")

</div>

[Napoli vs Real Madrid Live](https://www.reddit.com/r/Napvrid/)
