Wowza Community

parameter in

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!

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

Is this possible?

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

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

or server-side like this:

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

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.

http://www.wowza.com/media-server/developers#wowza-ide

Richard

I’m sorry, I missed!

Where should I set these codes?