Moving to Rails has been great fun, i found myself stuck with a shoucast player that was PHP based. I chose to use Jplayer but the problem is that their documentation isn’t great when it comes to Shoutcast, so my player wasn’t working until the code looked something like this
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
$("#jquery_jplayer_1").jPlayer({
ready: function (event) {
$(this).jPlayer("setMedia", {
mp3:"http://77.68.106.224:8018;stream/1"
}).jPlayer("play");
},
swfPath: "js",
supplied: "mp3",
wmode: "window"
});
});
//]]>
</script>
