Tuesday, July 28, 2009

How do I add a radio station html code to my website?

I have a message board forum and I can enter html codes so that something like a clock or a dictionary can show up on the main page. But how can I install a radio so that people can simply click on say radio one and listen to it live as they look around my forum?





Anyone know of any websites? Thanks xx

How do I add a radio station html code to my website?
you could embed a media player in the page with the reference to the audio file you want users to listen to, or display text links to a pop up window which can have a media player referencing the specific station they wanted to listen to:





HTML Embed:





%26lt;OBJECT ID='MediaPlayer1' CLASSID='CLSID:22d6f312-b0f6-11d0-94ab-0... CODEBASE='http://activex.microsoft.com/a... Version=5,1,52,701' STANDBY='Loading Microsoft Windows® Media Player components...' TYPE='application/x-oleobject' width='280' height='46'%26gt;


%26lt;param name='fileName' value='http://www.yourlink.com'%26gt;


%26lt;param name='animationatStart' value='true'%26gt;


%26lt;param name='transparentatStart' value='true'%26gt;


%26lt;param name='autoStart' value='False'%26gt;


%26lt;param name='showControls' value='true'%26gt;


%26lt;param name='Volume' value='-300'%26gt;


%26lt;embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Wi... src='http://www.yourlink.com' name='MediaPlayer1' width=280 height=46 autostart=1 showcontrols=1 volume=-300%26gt;


%26lt;/OBJECT%26gt;





and changing different options makes it do different things:





autostart=1 - starts on the page loading


aotostart=0 - starts when the users clicks play





width = width of player


height = height of player





etc etc


No comments:

Post a Comment