Embed Code

How to embed your radio in a website

In this tutorial we will explain how to embed your radio on the listen2myradio premium service.
If you use our premium service, the process of embedding is simple and takes 3 minutes or so.
You need:


•Your premium IP and Port
•Embed code
•Text editor
First of all you should get your IP and Port, you can find these in the email you received from listen2myradio or in your CentovaCast control panel.
Once you get your port and ip just open a text editor and copy the following code into it:

Code:
<html >
<head>
</head>

<object id='mediaPlayer1' width="376" height="50"

  classid='clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6'

  codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'

  standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>

  <param name='fileName' value="http://ip:port" />

  <param name='animationatStart' value='true' />

  <param name='transparentatStart' value='true' />

  <param name='autoStart' value="false" />

  <param name='showControls' value="true" />

  <param name ="ShowAudioControls"value="true" />

  <param name="ShowStatusBar" value="true" />

  <param name='loop' value="false" />

  <embed type='application/x-mplayer2'

  pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'

  id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'

  bgcolor='darkblue' showcontrols="true" showtracker='-1'

  showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="376" height="50"

  src="http://ip:port" autostart="true" designtimesp='5311' loop="false"> </embed>

  </object>

<body> </body> </html>
Where you see ip:port here you are suppose to add your iP and port there

Example:
Code:
http://62.113.22.218:8110
Then save this file as name.html and open that file in a browser, your should see a media player in the window and you should be able to play your stream by pressing the “Play” button
The various parameters in this code can be used to change the function of the player some examples are:
WIDTH=
HEIGHT=
These are pretty self-explanatory , they determine the width and height of the player in pixels…

You can leave all of these at their default settings but you can also turn them on/off by setting a 0 or 1 at most of them (1 for on/0 for off)

 

  • 259 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

CenotvaCast Basic Configuration

CenotvaCast Basic ConfigurationIn this tutorial we will explain how to setup the CentovaCast...

Broadcasting with SHOUTcast Radio DSP plug-in

Broadcasting with SHOUTcast Radio DSP plug-inIn this tutorial we will expalin how to start...

Auto-DJ and media handling

Auto-DJ and media handlingOur premium packages come with a feature called...

Broadcasting with Virtual DJ

Broadcasting with Virtual DJIn this tutorial we will explain how to start broadcasting using...

Broadcasting with SAM Broadcaster

Broadcasting with SAM BroadcasterIn this tutorial we will explain how to start broadcasting...