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!
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!