# PushPlugin  PushPublishMap dynamic stream name

**URL:** <https://community.wowza.com/t/pushplugin-pushpublishmap-dynamic-stream-name/39844>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [January 31, 2013, 12:58pm UTC](https://community.wowza.com/t/pushplugin-pushpublishmap-dynamic-stream-name/39844 "2013-01-31T12:58:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Swedin](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@Thomas\_Swedin](https://community.wowza.com/u/Thomas_Swedin)\
**Post date:** [January 31, 2013, 12:58pm UTC](https://community.wowza.com/t/pushplugin-pushpublishmap-dynamic-stream-name/39844/1 "2013-01-31T12:58:06Z")

</div>

Hi!

Is’t possible to override the destination streamname (StreamName:myStream) in PushPublishMap.txt, with the source stream name?

myStream ={Profile:rtmp, StreamName:myStream, Host:x.x.x.x, Application: xxxxx, UserName:xxxxx, Password:xxxxx}

I have tried to find any objects with these parameters in the function onPublish that I could change

public void onPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend){

…

}

I need to find o way, because the source streamname will be diffrent every time.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Tom\_Lemmons](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@Tom\_Lemmons](https://community.wowza.com/u/Tom_Lemmons)\
**Post date:** [January 31, 2013, 9:19am UTC](https://community.wowza.com/t/pushplugin-pushpublishmap-dynamic-stream-name/39844/2 "2013-01-31T09:19:29Z")

</div>

If you do now give it a “StreamName” parameter it will us the source stream name as the destination name unless the destination requires specific names (such as Akamai). You can put anyname you want including the source stream name in the StreamName parameter. You have to know the source stream name for the PushPublishMap.txt file since currently generated or changing names is not supported.
