Wowza Community

AMFDataList parameter parsing

Hello, in which way did I have to add the parameters for the AMFDataList-object?

I used the example for the user authentication: (

public void onConnect(IClient client, RequestFunction function, AMFDataList params) 
		String userName = getParamString(params, PARAM1);
		String password = getParamString(params, PARAM2);

I tryed to parse parameters about the url “rtmp://a:b@localhost/test” and “rtmp://localhost/test?a&b” without success. I use the Flowplayer. Did I have to add the parameters there?


The AMFDatalist contains the parameters sent in the connect function and I believe that the A:B@localhost etc is not a supported method in Flash so this will not work.

You will need to modify the FlowPlayer code and change the connect function so adding the username/password as part of that, it is not trivial.


You can get the querystring from the connect url

String[] qs =client.getQueryStr().split("&");


Ah ok. In this case the sample code “User Authentication” is for people, who programmed their own flashplayer, right? Thats a pitty. Is there an other posibility for a user authenticaton with password?

Great! Works fine.