Simple Flash Player for Shoutcast and Icecast

May 18, 2011 in Blog, ICEcast, Internet Radio, SHOUTcast by Javier Rivera  |  No Comments

Very simple Just copy the code in your html code of your website and add your ip address and port  “http://ipaddress:port” For Icecast remember add your mount point.

Shoutcast


<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
<a href="http://www.shoutcheap.com/shoutcast/">shoutcast</a>
<a href="http://www.shoutcheap.com/icecast/">icecast</a></div>
<script type="text/javascript" src="http://www.shoutcheap.com/flashplayer/swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("http://www.shoutcheap.com/flashplayer/player.swf",
"ply","200","20","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars",
"file=http://ipaddress:port/;stream.nsv&type=mp3&volume=50&autostart=true");
s1.write("container");
</script>

Icecast


<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
<a href="http://www.shoutcheap.com/shoutcast/">shoutcast</a>
<a href="http://www.shoutcheap.com/icecast/">icecast</a></div>
<script type="text/javascript" src="http://www.shoutcheap.com/flashplayer/swfobject.js"></script>
<script type='text/javascript'>
var s1 = new SWFObject('http://www.shoutcheap.com/flashplayer/player.swf',
'player',"200","20","9","#FFFFFF");
s1.addParam('allowfullscreen','true');
s1.addVariable('autostart','true');
s1.addParam('allowscriptaccess','always');
s1.addVariable('file','http://ipaddress:port/stream%3Ftype%3D.mp3');
s1.addVariable('duration','360000');
s1.addVariable('provider','video');
s1.write("container");
</script>

Start your own radio station today!
 

Posted in Blog, ICEcast, Internet Radio, SHOUTcast and tagged , , , .

Comments are closed.