Detect Flash stream name?

I am “intercepting” an RTMP request to my Wowza server using the onConnect method:

public void onConnect(IClient client, RequestFunction function, AMFDataList params)

For e.g. MPEG-Dash, I’ve used

onHTTPMPEGDashStreamingSessionCreate()

for this, successfully using the

IHTTPStreamerSession.getStreamName()

method in order to retrieve the name of the stream that the user is trying to play. Are there any equivalent methods that I can use to obtain the name of the stream when it is played using RTMP? I can’t seem to find any methods within the three arguments to

onConnect()

Thanks!

tommy

Hi Tommy,

Here is a guide on controlling access to a playback stream (the IClient object is for RTMP). It includes logic in obtaining the stream name.

		IMediaStream stream = getStream(client, function);		
		String streamName = getParamString(params, PARAM1);

Michelle