# Can be used to switch the live-stream source URI dynamically?

**URL:** <https://community.wowza.com/t/can-be-used-to-switch-the-live-stream-source-uri-dynamically/43183>\
**Category:** Wowza Streaming Engine\
**Created:** [June 10, 2014, 12:53pm UTC](https://community.wowza.com/t/can-be-used-to-switch-the-live-stream-source-uri-dynamically/43183 "2014-06-10T12:53:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keita\_Satoh](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@Keita\_Satoh](https://community.wowza.com/u/Keita_Satoh)\
**Post date:** [June 10, 2014, 12:53pm UTC](https://community.wowza.com/t/can-be-used-to-switch-the-live-stream-source-uri-dynamically/43183/1 "2014-06-10T12:53:28Z")

</div>

I’m going to live-streaming(RTMP) from FMS as origin.

Depending on the setting of Application\>StreamFiles in WowzaStreamingEngineManager, and I succeeded in do live-streaming by referring to the .stream file. 🙂

However, in this way, I can be live-streaming are fixed (and known) only by the stream source.

I want to add or switch the stream-source-URI dynamically.

As a way to realize, I am going to try to implement a custom module, and notify some stream-source-URI from a client to WowzaStreamingEngine.

How do I should implement a custom module?

Use MediaCaster? MediaStream?😕

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [June 10, 2014, 4:19am UTC](https://community.wowza.com/t/can-be-used-to-switch-the-live-stream-source-uri-dynamically/43183/2 "2014-06-10T04:19:51Z")

</div>

You could utilize the [stream name alias](https://www.wowza.com/docs/how-to-get-the-streamnamealias-addon) module and define a play alias that maps to a particular source and then update it dynamically (the stream name alias module comes with source as well). Alternatively, you could utilize the [IMediaStreamNameAliasProvider2](https://www.wowza.com/docs/how-to-use-event-listeners-in-wowza-media-server#IMediaStreamNameAliasProvider2) interface.

---

<div class="post-metadata">

**Author:** ![Keita\_Satoh](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@Keita\_Satoh](https://community.wowza.com/u/Keita_Satoh)\
**Post date:** [June 11, 2014, 5:56pm UTC](https://community.wowza.com/t/can-be-used-to-switch-the-live-stream-source-uri-dynamically/43183/3 "2014-06-11T17:56:47Z")

</div>

Hi,

I tried it and I did well!

Thanks a lot.

Solomon

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [June 11, 2014, 6:00am UTC](https://community.wowza.com/t/can-be-used-to-switch-the-live-stream-source-uri-dynamically/43183/4 "2014-06-11T06:00:08Z")

</div>

Great, I’m glad it worked. Thanks for the update.

Matt

---

<div class="post-metadata">

**Author:** ![Keita\_Satoh](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@Keita\_Satoh](https://community.wowza.com/u/Keita_Satoh)\
**Post date:** [June 10, 2014, 6:58pm UTC](https://community.wowza.com/t/can-be-used-to-switch-the-live-stream-source-uri-dynamically/43183/5 "2014-06-10T18:58:53Z")

</div>

Hi, matt\_y

Thanks for your reply.

I’ll try it.

Solomon
