PDA

View Full Version : Making a Radio Player & ASX File



Lilian
26-05-2007, 07:50 PM
Hello,

LuckyRare (http://habboxforum.com/member.php?u=9770) has posted a tutorial on how setting up a radio. Can be found by clicking here (http://habboxforum.com/showthread.php?t=27851)! In this tutorial I will show you how to make a Radio Player with and ASX file so that your radio will work in browsers such as Firefox (http://www.firefox2.com/)!

Basic Radio Player

This is a code for the basic radio player which works in some browsers but not Firefox and maybe a few other browsers!


<object id="MediaPlayer" type="application/x-oleobject" height="40" standby="Please wait while we start the radio!" width="180" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param value="http://IP ADDRESS:PORT" name="URL">
<param value="1" name="rate">
<param value="0" name="balance">
<param value="0" name="currentPosition">
<param value="" name="defaultFrame">
<param value="1" name="playCount">
<param value="-1" name="autoStart">
<param value="0" name="currentMarker">
<param value="-1" name="invokeURLs">
<param value="" name="baseURL">
<param value="50" name="volume">
<param value="0" name="mute">
<param value="mini" name="uiMode">
<param value="0" name="stretchToFit">
<param value="0" name="windowlessVideo">
<param value="-1" name="enabled">
<param value="-1" name="enableContextMenu">
<param value="0" name="fullScreen">
<param value="" name="SAMIStyle">
<param value="" name="SAMILang">
<param value="" name="SAMIFilename">
<param value="" name="captioningID">
<param value="0" name="enableErrorDialogs">
<param value="4763" name="_cx">
<param value="1058" name="_cy"></object>

Taken from LuckyRare's (http://habboxforum.com/member.php?u=9770) Tutorial!


Making the ASX based Radio!

Now setting up a radio to work in all browsers! Place this code were you want your Radio Player to go on your site:


<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" name="player" width="175" height="45" standby="Loading" codebase="/CODEBASE=http:/activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715">
<param name=" id="player="player"" value="true" />
<param name="CONTROLS" value="Imagewindow" />
<param name="ShowStatusBar" value="false" />
<param name="src" value="http://IP:Port Number/" />
<param name="url" value="http://IP:Port Number/" />

<param name="autostart" value="true" />
<param name="autoplay" value="true" />
<param name="Controls" value="playbutton" />

<param name="uimode" value="mini" />
<embed src="RADIO ASX FILE URL HERE" width="199" height="45" autostart="True" controls="playbutton" showstatusbar="false" url="RADIO ASX FILE URL HERE" autoplay="true" uimode="mini"> </embed></object>

Making the ASX File!

You will then need to make a ASX file. You can call it what ever you want but make sure it is "yourname.asx"

Then in that file you will need to place the following code:



<ASX version = "3.0">
<Param Name = "AllowShuffle" Value = "no" />
<TITLE>Your Website Name</TITLE>
<Entry>
<Ref href = "http://IP:PORT NUMBER/" />
</Entry>
</ASX>

Finishing!

Before this can work you will need to replace the following:

"IP" - This will be need to be replaced with your radios IP or URL address to were the shoutcast is located!
"Port Number" - The port to your radio can be found in the shoutcast control panel.

If your not sure of either of those then contact your shoutcast server administrator!

For the ASX radio player you will need to edit the same aswell as:
"RADIO ASX FILE URL HERE" - This needs to be replaced with the URL of your ASX file that you made.

For the ASX file you will need to replace the following:
"Your Website Name"
"IP" - This will be need to be replaced with your radios IP or URL address to were the shoutcast is located!
"Port Number" - The port to your radio can be found in the shoutcast control panel.

This is my first ever tutorial and I hope this will come in handly to a few people!

Enjoy!

Recursion
26-05-2007, 08:06 PM
Nice guide, Hehehe im not gay or anything but I like that Pink colour :o

Also When I needed a .asx file I just ripped ClubHabbo's xD and edited it :P

Lilian
26-05-2007, 08:08 PM
Nice guide, Hehehe im not gay or anything but I like that Pink colour :o

Also When I needed a .asx file I just ripped ClubHabbo's xD and edited it :P

Lol thanks :P Pinks the best colour you'll get :P

Blob
26-05-2007, 08:12 PM
Wth is the point in taking it from Luckyrares tutorial when you can just go on to his and learn how to set one up and put it on your website?

Lilian
26-05-2007, 08:15 PM
Wth is the point in taking it from Luckyrares tutorial when you can just go on to his and learn how to set one up and put it on your website?

No, Luckyrare done radio and stats. Im showing how to make an ASX file.

Blob
26-05-2007, 08:22 PM
No, Luckyrare done radio and stats. Im showing how to make an ASX file.

Wth does your post have



Basic Radio Player

This is a code for the basic radio player which works in some browsers but not Firefox and maybe a few other browsers!

HTML Code:


<object id="MediaPlayer" type="application/x-oleobject" height="40" standby="Please wait while we start the radio!" width="180" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param value="http://IP ADDRESS:PORT" name="URL">
<param value="1" name="rate">
<param value="0" name="balance">
<param value="0" name="currentPosition">
<param value="" name="defaultFrame">
<param value="1" name="playCount">
<param value="-1" name="autoStart">
<param value="0" name="currentMarker">
<param value="-1" name="invokeURLs">
<param value="" name="baseURL">
<param value="50" name="volume">
<param value="0" name="mute">
<param value="mini" name="uiMode">
<param value="0" name="stretchToFit">
<param value="0" name="windowlessVideo">
<param value="-1" name="enabled">
<param value="-1" name="enableContextMenu">
<param value="0" name="fullScreen">
<param value="" name="SAMIStyle">
<param value="" name="SAMILang">
<param value="" name="SAMIFilename">
<param value="" name="captioningID">
<param value="0" name="enableErrorDialogs">
<param value="4763" name="_cx">
<param value="1058" name="_cy"></object>



Taken from LuckyRare's Tutorial!

Lilian
26-05-2007, 08:27 PM
Yes I was just posting a normal radio code aswell. Fgs I wonder why I bother sometimes. I try doing something good and I get moaned at.

Blob
26-05-2007, 08:27 PM
No, you say that the normal radio code is taken from Luckyrare, yet you say that you didnt take it?

Lilian
26-05-2007, 08:29 PM
I haven't said I didnt take it :S

Aflux
26-05-2007, 08:35 PM
Ignore Ryan, too many lemon's I'll say.

Nice guide :).

Lilian
26-05-2007, 08:38 PM
Thank you :)


Ignore Ryan, too many lemon's I'll say.

Nice guide :).

Bomb-Head
26-05-2007, 09:13 PM
Nice, helpfull guide :)

Mr Macro
26-05-2007, 09:21 PM
Good guide.

Want to hide these adverts? Register an account for free!