# parameter in 

**URL:** <https://community.wowza.com/t/parameter-in/36698>\
**Category:** Wowza Streaming Engine\
**Created:** [March 15, 2012, 10:15am UTC](https://community.wowza.com/t/parameter-in/36698 "2012-03-15T10:15:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kleber\_Prando](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@Kleber\_Prando](https://community.wowza.com/u/Kleber_Prando)\
**Post date:** [March 15, 2012, 10:15am UTC](https://community.wowza.com/t/parameter-in/36698/1 "2012-03-15T10:15:09Z")

</div>

Good Afternoon!

We can use more than one parameter in ?

Something like: live, file \</ StreamType\> to run live broadcasts or on demand at the same application.xml?

Thank you!

---

<div class="post-metadata">

**Author:** ![Kleber\_Prando](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@Kleber\_Prando](https://community.wowza.com/u/Kleber_Prando)\
**Post date:** [March 26, 2012, 11:48am UTC](https://community.wowza.com/t/parameter-in/36698/2 "2012-03-26T11:48:08Z")

</div>

Maybe I have not expressed myself right. Conveying the need live and on demand at the same point of transmission.

Is this possible?

---

<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:** [March 26, 2012, 6:25pm UTC](https://community.wowza.com/t/parameter-in/36698/3 "2012-03-26T18:25:44Z")

</div>

You can only specify one, but for Flash RTMP clients you can change StreamType dynamically, either client-side, like this

```auto
netconnection.call("setStreamType",null, "default");
var netstreamVOD:NetStream = new NetStream(netconnection);
netstreamVOD.play("mp4:sample.mp4");

```

or server-side like this:

```auto
package test;
import com.wowza.wms.amf.*;
import com.wowza.wms.client.*;
import com.wowza.wms.module.*;
import com.wowza.wms.request.*;
public class ModuleStreamTypeSwitch extends ModuleBase {
	public void onConnect(IClient client, RequestFunction function,
			AMFDataList params) {
		String streamType = getParamString(params, PARAM1);
		client.setStreamType(streamType);
	}
}

```

In the above, you would might connect to an application with StreamType “live” but set it to “default” for vod playback

netconnection.connect(“rtmp://[wowza-address]:1935/live”, “default”);

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:** [March 26, 2012, 11:35pm UTC](https://community.wowza.com/t/parameter-in/36698/4 "2012-03-26T23:35:31Z")

</div>

The client-side is Flash Actionscript for a RTMP client. The server-side is a whole little Wowza application module. You need the Wowza IDE, which includes a short guide to get you started.

[https://www.wowza.com/media-server/developers#wowza-ide](https://www.wowza.com/media-server/developers#wowza-ide)

Richard

---

<div class="post-metadata">

**Author:** ![Kleber\_Prando](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@Kleber\_Prando](https://community.wowza.com/u/Kleber_Prando)\
**Post date:** [March 26, 2012, 3:51pm UTC](https://community.wowza.com/t/parameter-in/36698/5 "2012-03-26T15:51:38Z")

</div>

I’m sorry, I missed!

Where should I set these codes?
