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

SHOUTcast Stream with jPlayer on Wordpress


Hi there,

I just installed jplayer on my wordpress site, amazing plugin.

But I have no idea how to call a streaming site.

What would the script be to call a streaming site from Shoutcast using jPlayer?

the link would be something like this(this is an example) http://188.182.96.4:8085/index.html

Any ideas?

Many Thanks

42 Community Answers

Ethan Feldman

JW Player Support Agent  
1 rated :

ShoutCast is not officially supported, it depends on what the streaming URL is, do you have an example?

JW Player

User  
0 rated :

Hi its a link like this:

http://65.49.77.146:9520/

or http://65.49.77.146:9520/listen.pls

I actually seen some websites who used JW Player,but have no idea what the code would look like

Any idea?

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

The code would look like this:

<script type='text/javascript' src='jwplayer.js'></script> <div id='mediaspace'>This text will be replaced</div> <script type='text/javascript'> jwplayer('mediaspace').setup({ 'flashplayer': 'player.swf', 'file': 'http://65.49.77.146:9520/listen.pls', 'provider': 'sound', 'controlbar': 'bottom', 'width': '470', 'height': '320' }); </script>

But, I am pretty sure that .pls streams do not work. I think it has to be .nsv for it to work.

JW Player

User  
0 rated :

Here the working code for the lasted version of JW player.

<div id="mediaplayer">JW Player goes here</div>

<script type="text/javascript" src="jwplayer.js"></script>
<script type="text/javascript">
jwplayer("mediaplayer").setup({
flashplayer: "player.swf",
file: "http://XX.XX.XX.XX:ZZZZ/;*.nsv",
image: "preview.jpg",
skin: "modieus.zip",
provider: "sound",
autostart: "true"
});
</script>

Replace: XX.XX.XX.XX for your IP server of shoutcast and ZZZZ with your port.

like this: file: "http://127.0.0.1:8787/;*.nsv",

JW Player

User  
0 rated :

wRkA, How can I generate this file. NSV. I do not understand.
It has to do shotcast generate this file.
Could you tell how to do this?
Or is it simply put. "NSV" after http://xxx.xxx.xxx:zzzz/; *?

Thanks in advance.

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a NSV file yourself?

JW Player

User  
0 rated :

I am interested in this answer. I have "NSV Tools" on my pc. I have 3 shoutcast streams. I have the JW Player plug in on WP.

I would like to use shoutcast w/JW on my WP site for both radio and streaming vid. (could use different streams).

But I don't understand nsv.

Thanks.

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link to one of your streams?

JW Player

User  
0 rated :

This is the shortcode I used to get the Wordpress JW PLayer plugin to stream my Shoutcast.

bc.. [jwplayer type="audio" file="http://xx.xx.xx.xx:8000/;stream.nsv" streamer="http://xx.xx.xx.xx:8000" provider="rtmp" html5_file="http://xx.xx.xx.xx:8000/;stream.nsv"]


Hope that helps.

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, that should work then.

JW Player

User  
0 rated :

Guys, I am new here. I just installed the jwplayer and I got it streaming perfect through my private server using Sam Broadcaster and Shoutcast server. I would like to add the Livestream plug in found here: http://www.longtailvideo.com/addons/plugins/280/get-examples.html?addon=280&vid=314&q=. My problem is, I don't know how to include my url to the code. Everything I've tried has not worked. Can someone please look at code and point me the right direction. Thanks.

The code is: <script type='text/javascript' src='/jwplayer/jwplayer.js'></script>

<div id='mediaplayer'></div>

<script type="text/javascript">
jwplayer('mediaplayer').setup({
'flashplayer': 'player.swf',
'id': 'playerID',
'width': '480',
'height': '35',
'file': 'http://82.201.100.23/Radio538',
'streamer': 'rtmp://82.201.53.8:80/shoutcast',
'controlbar': 'none',
'plugins': {
'audiolivestream-1': {}
}
});
</script>

If I include this code on my webpage, it will play just the way it is. Unfortunately, that's not my url.

My url is:204.93.161.209:8000/;

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

Here's the link to a demo I'm testing. It's another player. The problem with this player is that it doesn't show up in different browsers and it burps every now and then. Thanks

http://testing.spanglish101.fm/demo/

JW Player

User  
0 rated :

Here's the link to the above code set on a page. it works just the way it is, but, I can't figure out how to include my url. 204.93.161.209:8000/; Thanks

http://testing.spanglish101.fm/jwplayer/test.html

Ethan Feldman

JW Player Support Agent  
0 rated :

Ok, not sure about the first player.

For the 2nd link, you need to put your stream into the “file” line:

'file': 'http://82.201.100.23/Radio538',

JW Player

User  
0 rated :

That's exactly my problem. I can't figure out how to include. Nothing seems to work.

JW Player

User  
0 rated :

I see I'm going to need a streaming server..do you support red5?

Ethan Feldman

JW Player Support Agent  
0 rated :

We do, but I don’t think that matters for this.

This line:

‘file’: ‘http://82.201.100.23/Radio538’,

Just needs to be:

‘file’: ‘http://204.93.161.209:8000/;’,

JW Player

User  
0 rated :

Ok. There's a misunderstanding. The player works with the above URL. The problem is that 1. It doesn't show track beign played and 2. The user can rewind a song. That's the reason I'm trying to stream via rtmp using a plug in like the one above.

Ethan Feldman

JW Player Support Agent  
0 rated :

If you are trying to stream with RTMP, you need your own RTMP server…

JW Player

User  
0 rated :

I have no sound...
The stream is http://live.radiofir.ro:8000/;stream.nsv

The code is:
<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
jwplayer('mediaspace').setup({
'flashplayer': 'player.swf',
'file': 'http://live.radiofir.ro:8000/;stream.nsv',
'provider':'sound',
'duration': '999999999',
'controlbar': 'bottom',
'width': '470',
'height': '240'
});
</script>

For 2 day i'm trying to play this stream in JWPlayer 5.9.2156.

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

This is the test link:

http://www.livecom.ro/radiofir/live.html

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

There might be an issue with your stream, when I open this link in my browser – http://live.radiofir.ro:8000/;stream.nsv, it displays in the browser, with a bunch of garbled text. It should be trying to pop a download instead.

JW Player

User  
0 rated :

Any .nsv opens like that. Another example is here: http://80.86.106.136:80/;stream.nsv

Open this 2 URL's in Winamp or Media Player, and they play well...

http://80.86.106.136:80/;stream.nsv
http://live.radiofir.ro:8000/;stream.nsv

Ethan Feldman

JW Player Support Agent  
0 rated :

http://80.86.106.136/;stream.nsv is not garbled, and pops a download, though.

JW Player

User  
0 rated :

This is the same stream using Windows Media Player embedded....
http://www.livecom.ro/radiofir/wmp.html

It plays well.

Ethan Feldman

JW Player Support Agent  
0 rated :

Your stream says:

icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>


And JW Player has never supported ShoutCast officially, fyi - http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12539/supported-video-and-audio-formats

JW Player

User  
0 rated :

"http://80.86.106.136/;stream.nsv is not garbled, and pops a download, though. "

In Firefow pops a download, in IE it is garbled text...

Ethan Feldman

JW Player Support Agent  
0 rated :

We don’t support ShoutCast officially. There you go.

JW Player

User  
0 rated :

I think most people here are private hobbyists types and wanted to use this player embedded in their web pages for personal use, with the stream from a shoutcast audio server. So perhaps they should use a different player, like one that is strictly audio. There are not many but they do exist. Google is your friend. If you're like me, and have a joomla page, you can find some like I did over on the joomla.org extensions section.

Ethan Feldman

JW Player Support Agent  
0 rated :

People can always use much older versions of the JW Player for Shoutcast.

JW Player

User  
0 rated :

Hi please help Im trying to get a stream to play over JW player but cant seem to get it to work on wp site, im on the latest version of JW.

Stream : http://black.neostreams.info:8137

Ethan Feldman

JW Player Support Agent  
0 rated :

This stream won’t work with our player I’m afraid.

JW Player

User  
0 rated :

Hey thank you very much! your code helped me make shoutcast stream work like a charm! Appreciate it very much :)

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

JW Player

User  
0 rated :

Why wouldn't Nas's stream not work with your player? They would jsut need to get the actual ip #'s instead of the text, which you can do with neostreams by going into your CentovaCast Dashboard. Am i wrong?

Ethan Feldman

JW Player Support Agent  
0 rated :

We don’t support ShoutCast. That’s why.

JW Player

User  
0 rated :

Is that because of the need of a crossdomain.xml?

Ethan Feldman

JW Player Support Agent  
0 rated :

No.

Our player does not support ShoutCast Streams.

It won’t work.

JW Player

User  
0 rated :

Hi,

for me a Shoutcast Stream works with the JW Player and the Audio Livestream Plugin (http://www.longtailvideo.com/addons/plugins/280/Audio-Livestream):
If you insert this at a html-file, it works at chrome and IE and I think Firefox (stats.campusradiopreis.de/player)
<script type="text/javascript">
jwplayer('mediaplayer').setup({
'flashplayer': 'player.swf',
'id': '1',
'width': '480',
'height': '70',
'file': 'http://streamplus28.leonex.de:28976/;',
'provider': 'sound',
'controlbar': 'none',
'autostart': 'true',
'plugins': {
'audiolivestream-1': {
format: 'Playing: %track',
}
}
});
</script>

But I dont know, how to get the track title working. Any Ideas?

Ethan Feldman

JW Player Support Agent  
0 rated :

We don’t support displaying that sort of metadata.

This question has received the maximum number of answers.