Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

SHOUTcast / Internet Radio


I really like the LongTail ...I really like the LongTail Player. It is simple and easy to add to any of my pages. It handles php well also.

My question is,
Is there any plans in the future to allow JW Player to connect to a Live audio Stream? I ask this because I would like to add this player to my internet radio station.

Scottie
octane.kicks-ass.net:85

5 Community Answers

JW Player

User  
0 rated :

I've gone through all of the forum posts (thoroughly I think) on Shoutcast and still can't get this to work...


Really, at this point, Im just trying to figure out how to get a playlist to work in jwplayer with our shoutcast stream. Ive been working on it for a while and havent had much luck. I think there is a problem with the way Im formatting my xml file

My urls are:
Shoutcast stream running through a Limelight proxy http://cptv.ic.llnwd.net/stream/cptv_mp3live
JWPlayer http://cptv.vo.llnwd.net/o2/player.swf
Playlist -- http://cptv.vo.llnwd.net/o2/playlist.xml



Using the wizard I get:
<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script>

<div id="player">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject('http://cptv.vo.llnwd.net/o2/player.swf','mpl','470','470','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=http://cptv.vo.llnwd.net/o2/playlist.xml');
so.write('player');
</script>



Here are the contents of my playlist.xml file:

<?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>WNPR - Online Services</creator>
<title>FJC - A Foundation of Philanthropic Funds</title>
<location>http://cpbn.org/files/FJCUC.mp3</location>
<image>http://cpbn.org/files/livestreaming/FJCUC.jpg</image>
<annotation>This is the first video</annotation>
<duration>19</duration>
</track>
<track>
<creator>WNPR - Online Services</creator>
<title>WNPR - Connecticut Public Broadcasting - Listen Live -</title>
<location>http://cptv.ic.llnwd.net/stream/cptv_mp3live/;stream.nsv</location>
<image>http://cpbn.org/files/wnpr_listen_live.jpg</image>
<duration></duration>
<type>sound</type>
</track>
</trackList>
</playlist>


Any idea what I'm doing wrong? Thanks.

Here is an html page with that embedded:
*http://www.cpbn.org/jwplayer.html*

JW Player

User  
0 rated :

Ok thanks lefTy, it turns out that the limelight proxy (http://cptv.ic.llnwd.net/stream/cptv_mp3live) was a .pls file, and embedded within that file was the stream (http://sc7.lga.llnw.net:80/stream/cptv_mp3live).

Using your tip ("?mp3") in my xml playlist along with the revised url gave me this:
bc.. <?xml version='1.0' encoding='UTF-8'?>
<playlist version='1' xmlns='http://xspf.org/ns/0/'>
<trackList>
<track>
<creator>WNPR - Online Services</creator>
<title>FJC - A Foundation of Philanthropic Funds</title>
<location>http://cpbn.org/files/FJCUC.mp3</location>
<image>http://cpbn.org/files/livestreaming/FJCUC.jpg</image>
<duration>19</duration>
</track>
<track>
<creator>WNPR - Online Services</creator>
<title>WNPR - Connecticut Public Broadcasting - Listen Live -</title>
<location>http://sc7.lga.llnw.net:80/stream/cptv_mp3live?mp3</location>

<image>http://cpbn.org/files/wnpr_listen_live.jpg</image>
<duration></duration>

</track>
</trackList>
</playlist>



Finally, after having a ton of trouble getting it to work, I tried to listen to it in Firefox (I typically use Google's Chrome) and with this playlist, it worked. In chrome it gave me a #2032 error. To round out the post, my playlist.xml, player.swf and skin swf are all in the same folder... the playlist is referencing files that are not hosted on the same domain. Here is the embed code that the wizard gave me:

bc.. <script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script>

<div id="player">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject('http://cptv.vo.llnwd.net/o2/player.swf','mpl','250','220','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=http://cptv.vo.llnwd.net/o2/playlist.xml&skin=http://cptv.vo.llnwd.net/o2/simple.swf&autostart=true&repeat=list');
so.write('player');
</script>


Thanks lefTy, I hadn't seen the ?mp3 shoutcast tip before. Hope this writeup helps someone else.

JW Player

User  
0 rated :

As far as I know, Shoutcast streams don't work in Chrome.

JW Player

User  
0 rated :


See: *http://www.longtailvideo.com/jw/?search=Shoutcast* :D

JW Player

User  
0 rated :

These all work:

bc.. 'file': 'http://cpbn.org/files/FJCUC.mp3',



Tricks the player into thinking it's getting an MP3 file.bc.. 'file': 'http://cptv.ic.llnwd.net/stream/cptv_mp3live?mp3',



Tells the player it's getting a file of *type* sound (MP3).bc.. 'file': 'http://cptv.ic.llnwd.net/stream/cptv_mp3live',
'type': 'sound',



This question has received the maximum number of answers.