adamsargant
New Member
I seem to have succesfully embedded my icecast stream in a web page using the JW player as follows
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
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>