# RTSP Relay

**URL:** <https://community.wowza.com/t/rtsp-relay/53970>\
**Category:** Wowza Streaming Engine\
**Created:** [September 19, 2019, 1:07pm UTC](https://community.wowza.com/t/rtsp-relay/53970 "2019-09-19T13:07:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hong\_suk\_kwon](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@hong\_suk\_kwon](https://community.wowza.com/u/hong_suk_kwon)\
**Post date:** [September 19, 2019, 1:07pm UTC](https://community.wowza.com/t/rtsp-relay/53970/1 "2019-09-19T13:07:13Z")

</div>

Hello.

I’m planning an application which relay RTSP streams from Cameras (input stream)

to multiple clients.(output stream)

Is it possible to configure the Wowza

- connecting to a camera only when client request the stream of the camera?

- and disconnecting to the camera when last client leaves?

Thank you.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [September 19, 2019, 4:21pm UTC](https://community.wowza.com/t/rtsp-relay/53970/2 "2019-09-19T16:21:26Z")

</div>

Yes, this is possible to configure through MediaCaster and we have several clients who have this workflow. The stream will only begin when a viewer seeks to connect to the stream and will disconnect after the last viewer disconnects.

Here is how you set it up:

[https://www.wowza.com/docs/how-to-use-the-wowza-streaming-engine-java-api-to-start-and-stop-mediacaster-streams](https://www.wowza.com/docs/how-to-use-the-wowza-streaming-engine-java-api-to-start-and-stop-mediacaster-streams)

---

<div class="post-metadata">

**Author:** ![hong\_suk\_kwon](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@hong\_suk\_kwon](https://community.wowza.com/u/hong_suk_kwon)\
**Post date:** [September 20, 2019, 1:26am UTC](https://community.wowza.com/t/rtsp-relay/53970/3 "2019-09-20T01:26:24Z")

</div>

Thank you.
