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

Icecast2 mounted stream in JW player


Hello there.

At the moment, i have bog standard player using a skin, playing a shoutcast stream. This works fine, as the standard shoutcast stream was simply *http://iphere:port* e,g, *http://172.0.2.31:8001/*. But with Icecast, it uses mounts, such as *http://iphere:port/mount* e.g. *http://172.0.2.31:8001/live*. This does not seem to play in the JW player using the usual method of *;stream.nsv* (which i used to do the shoutcast version as a test). When using the icecast stream with the mount-point extension (which is needed in icecast), the stream does not seem to work. I know that it is not a problem with the stream, as the Icecast stream works perfectly through an embedded windows media player on a web-page.

Here is my player's code. Hopefully one of you kind people will be able to help me on this one, as I've tried multiple methods to try and sort this, with no luck. :)

Cheers, Ryan.

bc.. <p id='preview'>If you cannot see the player, you must have a JavaScript enabled browser as well as the latest flash player installed.</p>
<script type='text/javascript' src='js/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','300','56','8');
s1.addParam('allowfullscreen','false');
s1.addParam('allowscriptaccess','always');
s1.addParam('file','http://172.0.2.31:8001/livewire/;stream.nsv');
s1.addParam('type','sound');
s1.addParam('skin','kleur.swf');
s1.addParam('backcolor','5A7294');
s1.addParam('frontcolor','5A7294');
s1.addParam('lightcolor','FFFFFF');
s1.addParam('screencolor','FFFFFF');
s1.addParam('autostart','true');
s1.write('preview');
</script>

31 Community Answers

JW Player

User  
1 rated :

Your mount point seems to be dead.

In any case, you certainly don't need ";stream.nsv" as that's only for Shoutcast streams. The "nsv" stands for *N*ull*S*oft *V*ideo.

JW Player

User  
0 rated :

Ah yes, at the moment it is not streaming and i am unable to start it now, sorry.

Ah right, that is something i never knew! Seems so obvious now :\

Does Icecast need a variable to tell the player that it is a stream similar to ;stream.nsv or would it do it on its own without any such thing alike? Or is there an alternative version for Icecast?

Thanks, Ryan.

JW Player

User  
0 rated :

Icecast just needs the type sound.

BTW, most of your params are really variables:bc.. <p id='preview'>If you cannot see the player, you must have a JavaScript enabled browser as well as the latest flash player installed.</p>
<script type='text/javascript' src='js/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','300','56','8');
s1.addParam('allowfullscreen','false');
s1.addParam('allowscriptaccess','always');
s1.addVariable('file','http://172.0.2.31:8001/livewire');
s1.addVariable('type','sound');
s1.addVariable('skin','kleur.swf');
s1.addVariable('backcolor','5A7294');
s1.addVariable('frontcolor','5A7294');
s1.addVariable('lightcolor','FFFFFF');
s1.addVariable('screencolor','FFFFFF');
s1.addVariable('autostart','true');
s1.write('preview');
</script>



parameters (addParam()) are for the Adobe Flash Player.

flashvars (addVariable()) are for the JW FLV Player.

JW Player

User  
0 rated :

That's much appreciated. I'll give it a go on Tuesday when i can next test the stream and see if it works.

Cheers for the help Rick! Ryan.

JW Player

User  
0 rated :

Success!

Thanks for the help.

JW Player

User  
0 rated :

You're welcome. Good Luck!

JW Player

User  
0 rated :

Hello!!

why does't work for my?

this is my code, copyed from rick.


bc.. <p id='preview'>If you cannot see the player, you must have a JavaScript enabled browser as well as the latest flash player installed.</p>
<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','300','56','8');
s1.addParam('allowfullscreen','false');
s1.addParam('allowscriptaccess','always');
s1.addVariable('file','http://liebre.dyndns.ws:8000/me.mp3');
s1.addVariable('type','sound');
s1.addVariable('autostart','true');
s1.write('preview');
</script>


My icecast is encoding
MP3 - Lame
Bitrate: 56
samplerate 22050
channels 2

currently using icecast2 windows version

I'm using this config with minicaster.
But sometimes the navigator crash with minicaster.

Tks in advance for any help

JW Player

User  
0 rated :

Are you sure that you have a stream named *me.mp3*?

If your *file* URI ends with a recognized media file extension, in this case "mp3", then you don't need to use the type=sound.

Flash/CS3 has a problem with audio encoded at samplerates other than 44,100Hz. It's best to stick to 44,100Hz for the JW FLV Player.

Your Icecast stream is dead now, so I can't test it.

JW Player

User  
0 rated :

Lost, I have an icecast streaming working here http://www.urbana.com.uy/ulive.html
It works, but 2 questions:
1- my mount finish in .mp3, but without type sound doesnt work. Is that correct?
2- suddenly the streaming start to stop and play, l ike buffer problem and nevers comes againcontinusly.

Is this a bug? Can I configure buffer?

JW Player

User  
0 rated :

If your *file* URI ends in "mp3", then you don't need the *type* _sound_.

If your stream is stopping to buffer frequently, you can try setting the bufferlength higher (maybe 10-15 seconds). However, you should find out why your server isn't delivering the stream, or why your client isn't receivng the stream. The Shoutcast/Icecast stream is low-bitrate, so there shouldn't be a problem unless you are on a very slow Internet connection.

JW Player

User  
0 rated :

tks for the answers....

now I'm using
My icecast is encoding
MP3 - Lame
Bitrate: 56
samplerate 44100
channels 2

minicaster now work ok! FF doses't crash when playing.
The problem was the incorrect samplerate.

The correct samplerate is 44100, as lost wrote.
tks!!

Now i will work back in JW player, and will comment it later.




JW Player

User  
0 rated :

Hi,
I'm able to get sound from my IceCast 2 server, but it plays for 5 seconds instead of streaming. Has anyone seen this before?

<script type='text/javascript'>
var so = new SWFObject('player.swf','ply','470','290','9','#ffffff');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://172.16.64.114:8000/smooth.mp3');
so.addVariable('type','sound');
so.write('mediaspace');
</script>


Thanks for the input.

JW Player

User  
0 rated :

Is it in Firefox that it only plays for a few seconds?

Try adding:bc.. so.addVariable('duration', '14400');



Some users like to add -1 or other duration values like 28800, unfortunately ? doesn't seem to work.

JW Player

User  
0 rated :

hi this is visagan from srilanka.
i m using broadband 512kbps
i m successfully configure radio with icecast and edcast.
my listenurl is http://192.168.1.4:8000/stream.ogg
but i m only listen this url. i cant establish this connection to others,
can anyone tell me how i configure all this?
i like to add my radio to my site?
thanks

JW Player

User  
0 rated :

because ip address you have configured is for local connection.
you should configure modem to route requests received at port 8000 to ip your local ip.
then your friends will be able listen your radio at http://yourglobalipaddress:8000/stream.ogg, i think.

you can get your global ip address at http://www.whatismyip.com/.
some modems support dynamic dns services like ddns.com. search about it.

JW Player

User  
0 rated :

hi Hi,
jwplay doesn't support ogg format

Ethan Feldman

JW Player Support Agent  
0 rated :

@oavisoa – Our HTML5 player definitely does support OGG.

http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/single_ogg.html – Demo of it working!

JW Player

User  
0 rated :

hello sir, good day. can i ask your favor how am i going to stream icecast 2 cause everytime i set up it. there;'s a prompt message asking a username and password? though i've entered a correct account still it ain't working

im only using a free icecast2 server. how am i going to bypass the prompt message and stream my radio?

is there a solution for that?

[ http://173.193.202.125:13895/listen.mp3?authn250fbc77efaff627d162a86b02425fa5 ]

am i going to include this in the set up -> ?authn250fbc77efaff627d162a86b02425fa5 ?

<script type='text/javascript' src='js/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','300','56','8');
s1.addParam('allowfullscreen','false');
s1.addParam('allowscriptaccess','always');
s1.addParam('file','http://173.193.202.125:13895/listen.mp3');
s1.addParam('type','sound');
s1.addParam('skin','glow.zip');
s1.addParam('backcolor','5A7294');
s1.addParam('frontcolor','5A7294');
s1.addParam('lightcolor','FFFFFF');
s1.addParam('screencolor','FFFFFF');
s1.addParam('autostart','true');
s1.write('preview');
</script>

is there an alternative solution so that i may be able to stream my radio using longtail players?


comments, feedbacks and suggestions are pretty much appreciated
thank you guys hope that you can resolve my problem...

much love and respect Cyrille Anne

Ethan Feldman

JW Player Support Agent  
0 rated :

We don’t support ICEcast, sorry.

JW Player

User  
0 rated :

Hi i readed here a post on 2011-10-05 from Longtail that JW player don't support ICECAST, it is now 2012. Does it support now? Do you have an version now?

Ethan Feldman

JW Player Support Agent  
0 rated :

Still not. Sorry.

JW Player

User  
0 rated :

Hold on, am I reading this right? This whole topic is about how people have successfully configured JW Player to support IceCast, but as soon as someone from JW Player says "we don't support icecast" it just stops working?

Ethan Feldman

JW Player Support Agent  
0 rated :

No, is just that we have never officially supported it. Some streams “work” though. That’s all.

JW Player

User  
0 rated :

Ethan, I have found this article into ADOBE Official blogs

http://www.adobe.com/devnet/flashplayer/articles/icecast-streams.html

Do you think currently can start to support officially?

thanks..

Ethan Feldman

JW Player Support Agent  
0 rated :

We could look into it, possibly.

JW Player

User  
0 rated :

For The Streaming Shoutcast Player i have create this :
<body>
<table align="" width="320" border="0" cellspacing="0" cellpadding="0">
<div id="mediaplayer"></div>
<!-- Variable objet -->
<script type='text/javascript' src='http://radioroute.net/adds/player/swfobject.js'></script>
<div id='mediaplayer'></div>
<script type='text/javascript'>
var so = new SWFObject('http://radioroute.net/adds/player/player.swf','mpl','320','150','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
<!-- Variable Shootcast -->
so.addVariable('file','http://89.84.228.207:7620/*.nsv');
so.addVariable('provider', 'sound')
<!-- Variable Option -->
so.addVariable('plugins', 'audiolivestream-1');
so.addVariable('format', 'Playing %track');
so.addVariable('autostart', 'true');
so.addVariable('buffer', 'Buffering: %perc%');
so.addVariable('backgroundCss', 'true');
so.addVariable('trackCss', 'color: #fff; font-size: 11px;');
<!-- Varaible Graphique -->
so.addVariable('skin', 'http://radioroute.net/wp-content/plugins/station-pro/tocar/skins/beelden/beelden.zip');
so.addVariable('image','http://radioroute.net/adds/RadioRoute3.png');
so.addVariable('lightcolor', '000000');
so.addVariable('screencolor', '000000');
so.addVariable('lightcolor', '000000');
so.addVariable('frontcolor', '000000');
so.write('mediaplayer');
</script>
</div>
</table>
</body>

But it is not compatible whit Android and Iphone !!!! Why

Ethan Feldman

JW Player Support Agent  
0 rated :

This is SwfObject, which is only compatible with Flash.

You need to use JWPlayer.js for HTML5 support.

http://www.longtailvideo.com/support/blog/15827/using-the-jw-embedder-to-embed-your-player

JW Player

User  
0 rated :

Yo logre hacer funcionar JWPlayer 5.10.2295 con icecast agregando el parametro type=audio con SWFObject asi funciona
bc.. var flashvars = {'type':'audio','file':'http://www.example.net/live','autostart':'true','skin':'http://www.example.net/radio/facebook.zip'};
var params = {'allowfullscreen':'true','allowscriptaccess':'always','bgcolor':'#ffffff'};
var attributes = {'id':'player1','name':'player1'};
swfobject.embedSWF('http://www.example.net/radio/player.swf', 'radio', '300', '38', '9', 'false', flashvars, params, attributes);


claro que para solventar el problema del crossdomain.xml servido por icecast2 lo que hice fue configurar un ProxyPass en Apache2.2 y asi redirigiendo www.example.net/live a www.example.net:8000/live de esta forma el el streaming es servido via proxy interno desde icecast y los demas contenidos (como el crossdomain.xml) los sirve apache y con esto el problema de mimes de solventa

Ethan Feldman

JW Player Support Agent  
0 rated :

Sorry, English?

JW Player

User  
0 rated :

I run JW Player achieves 05.10.2295 with icecast adding the parameter type = audio works well with SWFObject
bc.. var flashvars = {'type':'audio','file':'http://www.example.net/live','autostart':'true','skin':'http://www.example.net/radio/facebook.zip'};
var params = {'allowfullscreen':'true','allowscriptaccess':'always','bgcolor':'#ffffff'};
var attributes = {'id':'player1','name':'player1'};
swfobject.embedSWF('http://www.example.net/radio/player.swf', 'radio', '300', '38', '9', 'false', flashvars, params, attributes);



clear that to solve the problem of crossdomain.xml served by icecast2 I did was set up a ProxyPass in Apache2.2 and so redirecting www.example.net / live to www.example.net:8000/live thus the streaming is served via internal proxy from icecast and other content (such as crossdomain.xml) apache serves them and with this the problem solved mimes of
-Google Translate-

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have an example?

This question has received the maximum number of answers.