# How to name a stream dinamically

**URL:** https://community.wowza.com/t/how-to-name-a-stream-dinamically/43412
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [July 15, 2014, 6:02am UTC](https://community.wowza.com/t/how-to-name-a-stream-dinamically/43412 "2014-07-15T06:02:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![VICTOR\_MORAES](https://avatars.discourse-cdn.com/v4/letter/v/7cd45c/32.png) [@VICTOR\_MORAES](https://community.wowza.com/u/VICTOR_MORAES)
#### Post date: [July 15, 2014, 6:02am UTC](https://community.wowza.com/t/how-to-name-a-stream-dinamically/43412/1 "2014-07-15T06:02:57Z")

</div>

Hello,

I need a help to resolve an issue here. It is as follows:

I need to capture the request parameters coming from a flash player (url) before the creation of the stream, the Wowza is using the url sent to name the stream.

In fact, the need is to retrieve the request string before the Wowza assign this value to the stream and to name the stream dynamically.

I’m using jwplayer and this is how I’m accessing the wowza application.

[HTML]

Loading the player…

[/HTML]

The wowza is creating the stream named “dvr=portaria,id=62,cam=1,tipo=PRINCIPAL”, when in fact, these are the parameters I need to use in the application.

I have not found a way to capture the parameters before the stream creation and name the stream with another name.

Any tips on how to do this?

PS. Sorry for the english! =)

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [July 15, 2014, 3:16pm UTC](https://community.wowza.com/t/how-to-name-a-stream-dinamically/43412/2 "2014-07-15T15:16:59Z")

</div>

Hi,

Do it like this

```auto
file: "rtmp://localhost/minhaapp?dvr=portaria&id=62&cam=1&tipo=PRINCIPAL"

```

Then [follow this guide](https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-url-query-strings-onconnectauthenticate2%28ModuleOnConnectAuthenticate2%29) to extract and parse the querystring

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [July 16, 2014, 1:41pm UTC](https://community.wowza.com/t/how-to-name-a-stream-dinamically/43412/3 "2014-07-16T13:41:43Z")

</div>

Hi Victor,

You need [Eclipse with the Wowza IDE addon](https://www.wowza.com/streaming/developers).

And take a look at the [Wowza IDE guide](https://www.wowza.com/uploads/developers/WowzaIDE_UsersGuide.pdf). This guide is a little out-dated with references to the stand-alone Wowza IDE (which is no longer available) and Wowza 3 paths, but it is still the essential guide to implementing Wowza application Modules, HTTPProviders and ServerListeners

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [July 17, 2014, 4:51pm UTC](https://community.wowza.com/t/how-to-name-a-stream-dinamically/43412/4 "2014-07-17T16:51:09Z")

</div>

[This guide](https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-url-query-strings-onconnectauthenticate2%28ModuleOnConnectAuthenticate2%29) (as below) shows how to do what you want to do in an Application Module, using the Wowza API onConnect() method.

Richard

---

<div class="post-metadata">

### Author: ![VICTOR\_MORAES](https://avatars.discourse-cdn.com/v4/letter/v/7cd45c/32.png) [@VICTOR\_MORAES](https://community.wowza.com/u/VICTOR_MORAES)
#### Post date: [July 16, 2014, 5:24am UTC](https://community.wowza.com/t/how-to-name-a-stream-dinamically/43412/5 "2014-07-16T05:24:57Z")

</div>

Hi Richard,

I did the settings as the tutorial, but I did not understand how to implement com.example.MyCustomClass class to extract the parameters.

Do you have an example?

---

<div class="post-metadata">

### Author: ![VICTOR\_MORAES](https://avatars.discourse-cdn.com/v4/letter/v/7cd45c/32.png) [@VICTOR\_MORAES](https://community.wowza.com/u/VICTOR_MORAES)
#### Post date: [July 17, 2014, 8:36am UTC](https://community.wowza.com/t/how-to-name-a-stream-dinamically/43412/6 "2014-07-17T08:36:05Z")

</div>

Thanks Richard,

I need just a light to find the way.

Can I use a Wowza interface to extract the parameters? Is there one that i can use?

Or what’s event method where I can intercept the url data?

I’m so new on Wowza. Do you have a clue?
