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
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
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
You can then follow the instructions here:
http://community.wowza.com/t/-/33
Charlie
Is there something to see? I thought it was a pure audio stream?
Charlie
Put the following content in the StreamNameAliasMap.txt file:
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):
<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
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
I did not get the email. Please resend to charlie@wowza.com.
Charlie
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
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
You have to open this file:
[wowza-install-dir]/examples/SHOUTcast/client/shoutcast.html
Then, go to 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 (this one is Playa radio)
Copy that URL into the URL box, then click play.
Richard
Re metadata, look at this file:
com.jeroenwijering.models.RTMPModel.as
Look for this function:
public function onData(dat:Object):void {
if(dat.type == 'metadata' && !metadata) {
// try inserting lines here:
trace(dat.genre);
trace(dat.title);
// ....
}
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
station2=http://mystream.com:8002
Here’s my JW Script code
Keep me informed
Not working more
Hi Charlie I’ve sent you a personnal message. Let me know if you have everything needed to troubleshoot the problem.
Sincerely
Phil
hi Charlie,
Email is sent.
Thanks
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
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?
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.