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 statio which you want to embed.
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
In the code where ever the string "http://radiojoyalukkas.com/rdja.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
And this will be the resullt of the above code.
Click the play button to start playing/streaming the radio station.
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 statio which you want to embed.
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <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://radiojoyalukkas.com/rdja.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://radiojoyalukkas.com/rdja.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.
Related Post
Like this page on facebook
13 comments:
Hi, Thank you for your code , Its easy to do. And i am wondering how can I listed radios URL.
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.
really great, thanks for sharing.
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?
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
good job...thanks
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.
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
That html i was looking 2 days and finnaly
I putt it on
http://ularice.webs.com
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
Check for widows media player plugin. Install it and it will start working.
Very Big Thanks for this code! Save my day :)
thanks man thanks for your code its really amazing :)
Post a Comment