Wowza Community

Getting client unique ID?

Hello All,

I’m new to the Wowza IDE. Can we get the current Unique id being played by wowza server and its duration for which video has been played. Is their any way to detect from which mobile does this request come from?

Can we pass our own unique ID to wowza server as it right now automatically generated by wowza server and keep a track of that particular ID.

thanks

ajitpal

You can pass an ID to Wowza in NetConnection.connect, then store it and retrieve it in the IClient object using WMSProperties.

package com.wowza.wms.example.module;
import com.wowza.wms.amf.*;
import com.wowza.wms.client.*;
import com.wowza.wms.module.*;
import com.wowza.wms.request.*;
public class ModuleConnectPropertiesExample extends ModuleBase {
	public void onConnect(IClient client, RequestFunction function,
			AMFDataList params) {
		String userName = getParamString(params, PARAM1);
		client.getProperties().setProperty("username", userName);
		//later, any where you have a IClient object, can do:
		String someClientUserName = client.getProperties().getPropertyStr("username");
	}
}

Flash client-side:

netconnection.connect("rtmp://wowzaip/app","richard");

Richard

You can do similar with the RTPSession in onRTPSessionCreatem, then get the property from the RTPSession in onRTPSessionDestroy

Richard

You can pass an ID to Wowza in NetConnection.connect, then store it and retrieve it in the IClient object using WMSProperties.

package com.wowza.wms.example.module;
import com.wowza.wms.amf.*;
import com.wowza.wms.client.*;
import com.wowza.wms.module.*;
import com.wowza.wms.request.*;
public class ModuleConnectPropertiesExample extends ModuleBase {
	public void onConnect(IClient client, RequestFunction function,
			AMFDataList params) {
		String userName = getParamString(params, PARAM1);
		client.getProperties().setProperty("username", userName);
		//later, any where you have a IClient object, can do:
		String someClientUserName = client.getProperties().getPropertyStr("username");
	}
}

Flash client-side:

netconnection.connect("rtmp://wowzaip/app","richard");

Richard

Is their any way to do this concept in RTSP? Can we read sending datapackets from wowza to client in RTSP?

thanks

Ajitpal