# JW Player Live audio

**URL:** <https://community.wowza.com/t/jw-player-live-audio/436>\
**Category:** Wowza Streaming Engine\
**Created:** [October 6, 2008, 7:21pm UTC](https://community.wowza.com/t/jw-player-live-audio/436 "2008-10-06T19:21:23Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [October 6, 2008, 7:21pm UTC](https://community.wowza.com/t/jw-player-live-audio/436/1 "2008-10-06T19:21:23Z")

</div>

Hi there,

I would like to know how should I configure my JW player to make it able to listen my shoutcast stream rebroadcasted on wowza.

Sincerely,

Phil

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [October 6, 2008, 4:38pm UTC](https://community.wowza.com/t/jw-player-live-audio/436/2 "2008-10-06T16:38:55Z")

</div>

You will need to use the StreamNameAlias package so you can turn the shoutcast url into a regular stream name. You can get it here:

[http://community.wowza.com/t/-/47](http://community.wowza.com/t/-/47)

You can then follow the instructions here:

[http://community.wowza.com/t/-/33](http://community.wowza.com/t/-/33)

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [October 7, 2008, 7:05pm UTC](https://community.wowza.com/t/jw-player-live-audio/436/3 "2008-10-07T19:05:47Z")

</div>

Is there something to see? I thought it was a pure audio stream?

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [October 6, 2008, 6:32pm UTC](https://community.wowza.com/t/jw-player-live-audio/436/4 "2008-10-06T18:32:44Z")

</div>

Put the following content in the StreamNameAliasMap.txt file:

```auto
station1=http://[url-to-shoutcast-stream]

```

where **http://[url-to-shoutcast-stream]** is the url to the SHOUTcast stream.

JW Player codem (assumes most recent JW Player - 4.1):

```auto
<script type="text/javascript">
	var s1 = new SWFObject("player.swf","ply","328","200","9","#FFFFFF");
	s1.addParam("allowfullscreen","true");
	s1.addParam("allowscriptaccess","always");
	s1.addParam("flashvars","streamer=rtmp://[server-ip-address]/shoutcast&file=station1.flv");
	s1.write("container");
</script>

```

where **[server-ip-address]** is the ip address of the Wowza Pro server. You must add the .flv to the stream name or JW Player will fail. JW Player has changed a bit and I need to update the instructions. It has been changing quite frequently.

Try this to see if it works.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [October 7, 2008, 2:51am UTC](https://community.wowza.com/t/jw-player-live-audio/436/5 "2008-10-07T02:51:27Z")

</div>

I need more information than that. What is not working. What exactly did you try. What is showing up in the Wowza Pro log files.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [October 7, 2008, 6:43am UTC](https://community.wowza.com/t/jw-player-live-audio/436/6 "2008-10-07T06:43:19Z")

</div>

I did not get the email. Please resend to charlie@wowza.com.

Charlie

---

<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 8, 2008, 12:24pm UTC](https://community.wowza.com/t/jw-player-live-audio/436/7 "2008-10-08T12:24:04Z")

</div>

Do you mean metadata like Title, Genre?

If you look at the SHOUTcast example, it shows how to get those things using onMetaData Handler. I am not sure exactly where you would modify JW Player, but if you look for the play command or an onMetaData handler similar to what you see in the example, you should be able to add this in.

Richard

---

<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 8, 2008, 1:21pm UTC](https://community.wowza.com/t/jw-player-live-audio/436/8 "2008-10-08T13:21:05Z")

</div>

You have to dig around in the JW source code, look for the netstream.play command. There is probably already an onMetaData handler, you can even search for that: “onMetaData”

Richard

---

<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:** [November 13, 2008, 10:43am UTC](https://community.wowza.com/t/jw-player-live-audio/436/9 "2008-11-13T10:43:36Z")

</div>

You have to open this file:

[wowza-install-dir]/examples/SHOUTcast/client/shoutcast.html

Then, go to [http://www.shoutcast.com](http://www.shoutcast.com), find a station, click Tune In, download the PLS file, open that file in a text editor and copy a URL that looks like this

[http://213.46.44.149:8000](http://213.46.44.149:8000) (this one is Playa radio)

Copy that URL into the URL box, then click play.

Richard

---

<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:** [November 13, 2008, 10:47am UTC](https://community.wowza.com/t/jw-player-live-audio/436/10 "2008-11-13T10:47:37Z")

</div>

Re metadata, look at this file:

com.jeroenwijering.models.RTMPModel.as

Look for this function:

```auto
public function onData(dat:Object):void {
	if(dat.type == 'metadata' && !metadata) {
// try inserting lines here:
	trace(dat.genre);
	trace(dat.title);
// ....
}

```

---

<div class="post-metadata">

**Author:** ![Philippe\_Kyprianou](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@Philippe\_Kyprianou](https://community.wowza.com/u/Philippe_Kyprianou)\
**Post date:** [October 6, 2008, 9:13pm UTC](https://community.wowza.com/t/jw-player-live-audio/436/11 "2008-10-06T21:13:36Z")

</div>

Thanks Charlie,

I’ve been thru StreamNameAlias, and I think that I’ve installed correctly, but I haven’t been able to make the jw player work. I’ve checked the other link, but I must say it’s quiet confusing.

Here’s the StreamNameAliasMap.txt

> # comment
> 
> [pattern]=[alias]
> 
> # Prepends mp4: and mp3: to files with common H.264/MP3 extensions
> 
> \*.mp4=mp4:${Stream.Name}
> 
> \*.mov=mp4:${Stream.Name}
> 
> \*.m4v=mp4:${Stream.Name}
> 
> \*.m4a=mp4:${Stream.Name}
> 
> \*.f4v=mp4:${Stream.Name}
> 
> \*.3gp=mp4:${Stream.Name}
> 
> \*.3g2=mp4:${Stream.Name}
> 
> \*.mp3=mp3:${Stream.Name}
> 
> \*=${Stream.Name}
> 
> # Expands stream names to origin/edge urls
> 
> \*=rtmp://mystream.com:1935/${Application.Name}/${AppInstance.Name}/${Stream.Name}
> 
> # Expands stream names to SHOUTcast urls
> 
> # Omit default rule to block users from entering any url
> 
> station1=[http://mystream.com:8001](http://mystream.com:8001)
> 
> station2=[http://mystream.com:8002](http://mystream.com:8002)

Here’s my JW Script code

> 

Keep me informed

---

<div class="post-metadata">

**Author:** ![Philippe\_Kyprianou](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@Philippe\_Kyprianou](https://community.wowza.com/u/Philippe_Kyprianou)\
**Post date:** [October 6, 2008, 9:57pm UTC](https://community.wowza.com/t/jw-player-live-audio/436/12 "2008-10-06T21:57:29Z")

</div>

Not working more ☹

---

<div class="post-metadata">

**Author:** ![Philippe\_Kyprianou](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@Philippe\_Kyprianou](https://community.wowza.com/u/Philippe_Kyprianou)\
**Post date:** [October 7, 2008, 9:17am UTC](https://community.wowza.com/t/jw-player-live-audio/436/13 "2008-10-07T09:17:37Z")

</div>

Hi Charlie I’ve sent you a personnal message. Let me know if you have everything needed to troubleshoot the problem.

Sincerely

Phil

---

<div class="post-metadata">

**Author:** ![Philippe\_Kyprianou](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@Philippe\_Kyprianou](https://community.wowza.com/u/Philippe_Kyprianou)\
**Post date:** [October 7, 2008, 10:35am UTC](https://community.wowza.com/t/jw-player-live-audio/436/14 "2008-10-07T10:35:43Z")

</div>

hi Charlie,

Email is sent.

Thanks

---

<div class="post-metadata">

**Author:** ![Philippe\_Kyprianou](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@Philippe\_Kyprianou](https://community.wowza.com/u/Philippe_Kyprianou)\
**Post date:** [October 7, 2008, 9:53pm UTC](https://community.wowza.com/t/jw-player-live-audio/436/15 "2008-10-07T21:53:04Z")

</div>

Hi Charlie,

I have another question now that the stream work.

How can I show what’s playing from the stream on the player?

Thanks

---

<div class="post-metadata">

**Author:** ![Philippe\_Kyprianou](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@Philippe\_Kyprianou](https://community.wowza.com/u/Philippe_Kyprianou)\
**Post date:** [October 8, 2008, 8:06am UTC](https://community.wowza.com/t/jw-player-live-audio/436/16 "2008-10-08T08:06:28Z")

</div>

Yes exactly what I’m looking for, the metadata from SHOUTcast, like in the wowza SHOUTcast player exemple. How can I assign that to JW Player?

---

<div class="post-metadata">

**Author:** ![Scott\_Brookshire](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@Scott\_Brookshire](https://community.wowza.com/u/Scott_Brookshire)\
**Post date:** [November 12, 2008, 7:35pm UTC](https://community.wowza.com/t/jw-player-live-audio/436/17 "2008-11-12T19:35:57Z")

</div>

Can you tell me what you did to fix this issue. I’m also running into an issuere here where I can’t seem to get this work. I don’t think i’m that blind… but who knows…

When I load up the readme.html page which embeds the flash player… on my web server I’m getting: “Stream not found: station1.flv”

Clearly i’m missing something super basic here but can’t figure it out.
