# Make alias between appInstances

**URL:** <https://community.wowza.com/t/make-alias-between-appinstances/43671>\
**Category:** Wowza Streaming Engine\
**Created:** [August 22, 2014, 5:51pm UTC](https://community.wowza.com/t/make-alias-between-appinstances/43671 "2014-08-22T17:51:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Ushakov](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Alexander\_Ushakov](https://community.wowza.com/u/Alexander_Ushakov)\
**Post date:** [August 22, 2014, 5:51pm UTC](https://community.wowza.com/t/make-alias-between-appinstances/43671/1 "2014-08-22T17:51:17Z")

</div>

Is there any method to make alias in one appInstance (or even Application) for stream in another one?

For example: I publish stream myhost/app1/appInst1/stream1 and want to make it available at the path: myhost/app1/appInst2/stream3 or myhost/app2/appInst3/stream1

Standard modules StreamNameAlias or interface IMediaStreamNameAliasProvider2 allow me to change only last part (stream name).

---

<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:** [August 22, 2014, 12:55pm UTC](https://community.wowza.com/t/make-alias-between-appinstances/43671/2 "2014-08-22T12:55:06Z")

</div>

Hi there Alex, and welcome to the Wowza support forum.

I am not exactly sure what you are trying to do, but you may be able to achieve what you described with the MediaCaster system:

[How to use Stream Manager in Wowza Media Server 3](https://www.wowza.com/docs/how-to-use-stream-manager-in-wowza-media-server-3)

You would need to start pulling the MediaCaster stream for each app instance

I hope this is helpful.

Salvadore

---

<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:** [August 28, 2014, 4:12am UTC](https://community.wowza.com/t/make-alias-between-appinstances/43671/3 "2014-08-28T04:12:27Z")

</div>

You can do something similar by utilizing the [stream name alias](https://www.wowza.com/docs/how-to-get-the-streamnamealias-addon)module. You can create an entry in your aliasmap.stream.txt file. You can also use the IMediaStreamNameAliasProvider2 by resolving to the appropriate url in resolveStreamAlias.

---

<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:** [August 28, 2014, 5:20pm UTC](https://community.wowza.com/t/make-alias-between-appinstances/43671/4 "2014-08-28T17:20:23Z")

</div>

In IMediaStreamNameAliasProvider2 I was suggesting that you can return a rtmp url to resolve in that event handler. Otherwise you can map a stream name to the full rtmp url in stream name alias as well. There is a stream name passed as a parameter but you can resolve it to a complete url.

Thanks,

Matt

---

<div class="post-metadata">

**Author:** ![Alexander\_Ushakov](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Alexander\_Ushakov](https://community.wowza.com/u/Alexander_Ushakov)\
**Post date:** [August 28, 2014, 12:22pm UTC](https://community.wowza.com/t/make-alias-between-appinstances/43671/5 "2014-08-28T12:22:39Z")

</div>

Thank you for answer, Salvadore.

It seems that pulling requires to have ready .stream files in content folder. And I want to create aliases to stream when it is published to the Wowza server

---

<div class="post-metadata">

**Author:** ![Alexander\_Ushakov](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Alexander\_Ushakov](https://community.wowza.com/u/Alexander_Ushakov)\
**Post date:** [August 28, 2014, 3:29pm UTC](https://community.wowza.com/t/make-alias-between-appinstances/43671/6 "2014-08-28T15:29:00Z")

</div>

Does IMediaStreamNameAliasProvider2 allow to change ApplicationInstance? As I can see from API documentation it only changes stream name.

Currently the only way that I can find is duplicate stream:

[https://www.wowza.com/docs/how-to-duplicate-streams-to-another-application-instance-moduleduplicatestreams](https://www.wowza.com/docs/how-to-duplicate-streams-to-another-application-instance-moduleduplicatestreams)

though it looks like too complicated for my task

---

<div class="post-metadata">

**Author:** ![Alexander\_Ushakov](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Alexander\_Ushakov](https://community.wowza.com/u/Alexander_Ushakov)\
**Post date:** [September 2, 2014, 12:34pm UTC](https://community.wowza.com/t/make-alias-between-appinstances/43671/7 "2014-09-02T12:34:47Z")

</div>

Thanks, Matt.

Does this technique works for Apple HLS? I need streams to work on iOS and Android too.
