# how to have pass the username and password in playback for rtmp streamer

**URL:** https://community.wowza.com/t/how-to-have-pass-the-username-and-password-in-playback-for-rtmp-streamer/41949
**Category:** Wowza Streaming Engine
**Created:** [February 11, 2014, 4:32pm UTC](https://community.wowza.com/t/how-to-have-pass-the-username-and-password-in-playback-for-rtmp-streamer/41949 "2014-02-11T16:32:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kiran\_shetty](https://avatars.discourse-cdn.com/v4/letter/k/2acd7d/32.png) [@kiran\_shetty](https://community.wowza.com/u/kiran_shetty)
#### Post date: [February 11, 2014, 4:32pm UTC](https://community.wowza.com/t/how-to-have-pass-the-username-and-password-in-playback-for-rtmp-streamer/41949/1 "2014-02-11T16:32:14Z")

</div>

hi,

i am passing the username and password like this “**rtmp://[wowza-ip]/live?username&password/streamname**”

but getting an error in jw player like this “Error loading stream :could not connect to server”

but the same link is working in the **"Livestudio**" page found in the downloaded “ **WowzaServerAddOnCollection.zip** ”

please help me …

Thankyou…

---

<div class="post-metadata">

### Author: ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)
#### Post date: [February 11, 2014, 4:37am UTC](https://community.wowza.com/t/how-to-have-pass-the-username-and-password-in-playback-for-rtmp-streamer/41949/2 "2014-02-11T04:37:21Z")

</div>

Hi,

I suspect the / before streamname is confusing JW Player. You could try changing it to

rtmp://[wowza-ip]/live/streamname?username=x&password=y

But you would would also need to change your code slightly to get the query parameter.

Andrew.

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [February 14, 2014, 4:08pm UTC](https://community.wowza.com/t/how-to-have-pass-the-username-and-password-in-playback-for-rtmp-streamer/41949/3 "2014-02-14T16:08:45Z")

</div>

You might try the following to work with onConnect event handler:

```auto
rtmp://[wowza-ip]/live?username=x&password=y/streamname

```

---

<div class="post-metadata">

### Author: ![kiran\_shetty](https://avatars.discourse-cdn.com/v4/letter/k/2acd7d/32.png) [@kiran\_shetty](https://community.wowza.com/u/kiran_shetty)
#### Post date: [February 12, 2014, 11:22am UTC](https://community.wowza.com/t/how-to-have-pass-the-username-and-password-in-playback-for-rtmp-streamer/41949/4 "2014-02-12T11:22:54Z")

</div>

i tried this “rtmp://[wowza-ip]/live/streamname?username=x&password=y” but not working.

can i get the player used in Livestudio
