Embedding stream with JW player

adamsargant

New Member
I seem to have succesfully embedded my icecast stream in a web page using the JW player as follows

Code:
<p id='preview'>If you cannot see the player, you must have a JavaScript enabled browser as well as the latest <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> installed.</p>
<script type='text/javascript' src='jwplayer/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('jwplayer/player.swf','player','328','21','8');
s1.addParam('allowfullscreen','false');
s1.addParam('allowscriptaccess','always');
s1.addVariable('file','http://xx.xxx.xxx.xx:port/mountpoint');
s1.addVariable('type','sound');
s1.addVariable('autostart','true');
s1.write('preview');
</script>
and just wanted to check... my stream is uniquely defined by the IP address, port and mountpoint? It seems to work fine, but other solutions I have seen include the stations username and I just wanted to check:)
 
and just wanted to check... my stream is uniquely defined by the IP address, port and mountpoint? It seems to work fine, but other solutions I have seen include the stations username and I just wanted to check:)

That is correct, the IP, Port and Mountpoint will define where the media comes from, not the username or password or anything else. These are the only things that you need to embed the player and it should work absolutely fine for you Adam!! Thanks for sharing.
 
Top