Add/Embed online internet radio player on your blog/website

Add online radio on blog or website
In my previous post I have listed some radio stations which can be played online using the embedded player. In this post I will explain how to embed an online internet radio player on a blog/website.
  1. Get the link to the station. This can be extracted from the website of the respective station or a playlist file which is used to play the station or by searching in google.
    Search for the link to station which you want to embed.
    Some examples are
    • http://87.76.29.145:8400/
    • http://radio2.simple-url.com:8169/
    • http://50.7.96.138:8173/radioasiab
    • mms://212.72.165.19/radiodumdum1
    Some sites/radio also provides playlist files such as .pls, .asx, .ram etc. Try to use these links directly, or download(use a download manager) these files and open using notepad to get the stream.
    Some sites/radio will not have these playlist files, but just the player embedded. In this case use the view source or inspect element option in browser to examine the web page source and find the stream link.
  2. Go to the html view of the blog/website and past the following code at the place where you want the player to appear.
<div id="movId" name="movId" align=center>

<object id="MediaPlayer1" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" width="400" height="300">
  <param id="FileName" name="FileName" value="">
  <param name="animationatStart" value="true">
  <param name="transparentatStart" value="true">
  <param name="autoStart" value="true">
  <param name="showControls" value="true">
  <param name="fullScreen" value="false">
 <embed src="http://keralaradio.in/media/KeralaRadio.asx" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="MediaPlayer" autostart="1" showcontrols="1" width="400" height="45">
</object>
</div>

In the code where ever the string "http://keralaradio.in/media/KeralaRadio.asx" is present, should be replaced by the link to internet radio station which you want to stream.
If you want the page to start streaming/playing automatically, then change in line
<param name="autoStart" value="false">  
false to true and change in line no 10 autostart="1" to autostatrt="0"

And this will be the resullt of the above code.



Click the play button to start playing/streaming the radio station.

18 comments :

  1. Hi, Thank you for your code , Its easy to do. And i am wondering how can I listed radios URL.

    ReplyDelete
  2. List is made with the help of html radio buttons, table and java script. Table contains the link to the radio station. When a radio button is selected, it will call a javascript function. This function will change the code for embedding the player.

    ReplyDelete
  3. really great, thanks for sharing.

    ReplyDelete
  4. hi , thanks for the code, but im a little confused..
    i go to this site here
    http://www.windowsmedia.com/radioui/home.aspx

    but i cant find any links with .asx at the end?
    where do i find radio sation links to put in the player?

    ReplyDelete
  5. Go to the page, click listen for the station you want to listen, you will get a .wax file. Save that file and open with notepad. Now search for the link containing .asx

    ReplyDelete
  6. Hi, I followed this instruction and it seems to be working just fine on my site when I'm using firefox browser. but when I used Internet explorer browser, it wont play. I was just wondering if you got a tip to solve this problem.

    Thanks.

    ReplyDelete
  7. Please refer

    http://answers.microsoft.com/en-us/windows/forum/windows_vista-sound/windows-media-player-plugin-does-not-work-in/7742c2df-61cb-4543-9c61-130a973ffa2d

    ReplyDelete
  8. That html i was looking 2 days and finnaly
    I putt it on
    http://ularice.webs.com

    ReplyDelete
  9. Thanks :) ! It was easy to follow and very clear ;) I just need to know, now, where or how to find the plugin it says is missing ;) Which plugin should I look for ?

    Thanks Again :D

    ReplyDelete
  10. Check for widows media player plugin. Install it and it will start working.

    ReplyDelete
  11. Very Big Thanks for this code! Save my day :)

    ReplyDelete
  12. thanks man thanks for your code its really amazing :)

    ReplyDelete
  13. worked great! thanks man!

    ReplyDelete
  14. it works in a computer, but how can make it play like in an iphone, android?

    ReplyDelete
  15. thanks for sharing radio embed..

    ReplyDelete
  16. Big Thanks for this code!really nice.i have spent my most of the time to spend with online tamil fm visit it.have a nice day go ahead.

    ReplyDelete