# AMFDataList parameter parsing

**URL:** https://community.wowza.com/t/amfdatalist-parameter-parsing/35605
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [October 26, 2010, 1:26pm UTC](https://community.wowza.com/t/amfdatalist-parameter-parsing/35605 "2010-10-26T13:26:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ralf\_Jonas](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@Ralf\_Jonas](https://community.wowza.com/u/Ralf_Jonas)
#### Post date: [October 26, 2010, 1:26pm UTC](https://community.wowza.com/t/amfdatalist-parameter-parsing/35605/1 "2010-10-26T13:26:52Z")

</div>

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

I used the example for the user authentication: ([https://www.wowza.com/docs/how-to-do-user-authentication-for-flash-rtmp-client-using-jdbc-connection-to-mysql-database](https://www.wowza.com/docs/how-to-do-user-authentication-for-flash-rtmp-client-using-jdbc-connection-to-mysql-database)).

```auto
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?

Thanks.

---

<div class="post-metadata">

### Author: ![Andrew\_Kennedy](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Andrew\_Kennedy](https://community.wowza.com/u/Andrew_Kennedy)
#### Post date: [October 26, 2010, 5:41am UTC](https://community.wowza.com/t/amfdatalist-parameter-parsing/35605/2 "2010-10-26T05:41:57Z")

</div>

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.

Shamrock

---

<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: [October 26, 2010, 7:48pm UTC](https://community.wowza.com/t/amfdatalist-parameter-parsing/35605/3 "2010-10-26T19:48:23Z")

</div>

You can get the querystring from the connect url

```auto
String[] qs =client.getQueryStr().split("&");
getLogger().info(qs[0]);

```

Richard

---

<div class="post-metadata">

### Author: ![Ralf\_Jonas](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@Ralf\_Jonas](https://community.wowza.com/u/Ralf_Jonas)
#### Post date: [October 26, 2010, 3:48pm UTC](https://community.wowza.com/t/amfdatalist-parameter-parsing/35605/4 "2010-10-26T15:48:17Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Ralf\_Jonas](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@Ralf\_Jonas](https://community.wowza.com/u/Ralf_Jonas)
#### Post date: [October 27, 2010, 3:34pm UTC](https://community.wowza.com/t/amfdatalist-parameter-parsing/35605/5 "2010-10-27T15:34:37Z")

</div>

Great! Works fine.
