Jump to content

Heres A Free Flash Radio Player


Recommended Posts

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('

');

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

Link to comment
Share on other sites

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 most FAVOURITE piece of software EVER

 

 

Link to comment
Share on other sites

  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...