galaxymatt Posted January 19, 2011 Share Posted January 19, 2011 I'm sure many of you have been searching the internet over and over for a flash player that is capable of streaming shoutcast & icecast. this tutorial is for JW Player by Longtail video, i am not the developer of this application. 1. Create a folder called player 2. download the following files http://www.galaxy247.net/player/player.swf http://www.galaxy247.net/player/swfobject.js 3. if you choose to, download a player skin from http://www.longtailvideo.com/addons/skins 3. copy and paste the following code into a new file called player.js in the player folder //DO NOT CHANGE THIS CODE// document.write('Get Flash'); var head = window.document.getElementsByTagName("head")[0]; var script = null; script = window.document.createElement("script"); script.type = "text/javascript"; script.src = "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js?" + new Date().getTime(); head.appendChild(script); script.onload = script.onreadystatechange = function(){ swfObjectLoaded(); }; function swfObjectLoaded() {if (swfobject.hasFlashPlayerVersion("9")) { //END DO NOT TOUCH THIS CODE /*PORT NUMBER*/ var port = ':AND PORT'; /*HOST*/ var host = 'YOUR STATION IP'; //DO NOT CHANGE THIS CODE// var ln = 'stream'; var flashvars = { //END DO NOT CHANGE THIS CODE// /*JW PLAYER SKIN change if you have downloaded a skin*/ 'http://yoururl/player/skinfolder/skinxmlfile.xml', /* /*STREAM TITLE*/ 'title':'Station Name', /*AUTOSTART Set to 'true' or 'false'*/ 'autostart':'true', 'type':'sound', 'file':'http://YOUR STATION IP: AND PORT/;stream.nsv', 'duration':'99999', 'id':'scplayer' }; var params = { 'allowscriptaccess':'always', 'wmode': 'transparent', 'bgcolor':'#000000', 'allowfullscreen':'false' }; var attributes = { 'id':'scplayer', 'name':'scplayer' }; swfobject.embedSWF('http://yoururl/player/player.swf', 'playercontainer12601404152', '300', '30', '9.0.124', false, flashvars, params, attributes);}} /* DOWNLOAD THE PLAYER.SWF FILE AND UPLOAD TO YOUR OWN SITE AND CHANGE THE URL */ 5. copy and paste this code where you want your player to appear I'm not very good at tutorials but hopefully this will help Thanks, Matt http://galaxy247.net/files/outreach_4.gif Link to comment Share on other sites More sharing options...
djgary72 Posted January 19, 2011 Share Posted January 19, 2011 Thanks Matt im gonna give it a Shot this afternoon i shall Report back! My Blog https://djgarybaldy.blogspot.com User of RadioDJ FREE radio playout software since 2010. How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html RadioDJ is my FAVOURITE piece of software it works when I need It Link to comment Share on other sites More sharing options...
djgary72 Posted January 19, 2011 Share Posted January 19, 2011 After several attempts im just getting a Blank page maybe its just me and my limited skills!! My Blog https://djgarybaldy.blogspot.com User of RadioDJ FREE radio playout software since 2010. How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html RadioDJ is my FAVOURITE piece of software it works when I need It Link to comment Share on other sites More sharing options...
galaxymatt Posted January 19, 2011 Author Share Posted January 19, 2011 try replacing http://yoururl/player/player.swf with http://www.galaxy247.net/player/player.swf http://galaxy247.net/files/outreach_4.gif Link to comment Share on other sites More sharing options...
djgary72 Posted January 19, 2011 Share Posted January 19, 2011 Its ok Matt ive gone with the shoutcast pop up player as a link for me flash player saves a lot of hassle! thanks anyway! My Blog https://djgarybaldy.blogspot.com User of RadioDJ FREE radio playout software since 2010. How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html RadioDJ is my FAVOURITE piece of software it works when I need It Link to comment Share on other sites More sharing options...
galaxymatt Posted January 19, 2011 Author Share Posted January 19, 2011 ok , wavestreaming have a free flashplayer which is the same as this one but they have taken all the coding hassle away. http://www.wavestreaming.com/servers/flash-streaming/shoutcast-player.php http://galaxy247.net/files/outreach_4.gif Link to comment Share on other sites More sharing options...
pedrito1967 Posted March 29, 2011 Share Posted March 29, 2011 works perfectly ... I wonder if there is any chance of add something to show the songs of names Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.