Thursday, May 28, 2009

How To Add Windows Media Player or Real Player With Audio Stream Of Uploaded File or Radio

Hello Friends, Today I am going to tell you the most simple and easy way to add an audio stream of an uploaded file or of any online fm radio station to your blog of blogger also called blogspot or your own hosted blog or at your own webpage using Windows Media Player Or Real Player.

It is too easy but you should read all this step by step so that you can understand what is an audiostream, what are the kinds and which kind of audiostreams will work for us that we can add them on our blog or webpage.

What is Streaming Media explained by Wikipedia:

Streaming media is multimedia that is constantly received by, and normally presented to, an end-user while it is being delivered by a streaming provider (the term "presented" is used in this article in a general sense that includes audio or video playback). The name refers to the delivery method of the medium rather than to the medium itself. The distinction is usually applied to media that are distributed over telecommunications networks, as most other delivery systems are either inherently streaming (e.g. radio, television) or inherently non-streaming (e.g. books, video cassettes, audio CDs). The verb 'to stream' is also derived from this term, meaning to deliver media in this manner.

Now I will tell you how to add this streaming media to your blog or website. Please read all these steps one by one, it will make easier for you.

Step I: Kinds Of Streams and which will work for us:

There are many kinds of streaming media, i am telling you some of them which are mostly used by radio providers, they are:

- .asx
- .m3u
- .wax
- .pls
- .ram
- .asf
- .mu
- :port(for example :8080)
- mms
Above mentioned are some stream types, asx, wax, are most suitable for us to play with windows media player, if you want to add any radio station online then look for these types of streams from your fm radio station providers. On the other hand .ram and .pls are also good but they will work for real media player or winamp player. I would suggest you windows media player type because all users are having at least this player with their windows. And .asf and mms types will not play online they will open directly in the player, you cannot add these on blog or webpage. Now come :port type this sometimes plays online on blog or webpage and sometimes not.

Step II: Codes Of Media Players:

I: Add Windows Media Player:
Given Below Is the Code Of Windows Media Player In Line Pattern.
Note: You have to put <> in the end of every line yourself. I have not done because it would have made player here.Where I have written dont write in start or dont write in end, please dont do it in that line.


Line 1: div class="posts"
div style="CLEAR: both"

Line 2: /div

Line 3: embed name="mediaplayer1"

(dont end this with > )

Line 4: pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" type="application/x-mplayer2" showstatusbar="1" enablecontextmenu="true" autostart="true" transparentstart="1" loop="0" controller="true" filename="your audio stream url here" height="80" width="280"

(dont start this line with < )
Line 5: /embed

Line 6: div style="clear:both; padding-bottom:0.25em"

Line 7: /div

Line 8: /div

Its ended. Now You will see it will look like the code given below. If not you check your mistakes.



And If you want to see how does it looks like please click here.

II: Add Real Pleayer Audio To Blog Or Website:

I have seen many many people who were depressed of it that they wanted to add real audio in blog or website but were not able to do so. I have done it, i have added real player in my blog and in my website as well. Here is the way to do it.

Similarly here also i will write the code in lines so that i can be visible to us and easy to copy. You again have to write yourself < in start and > in end of the line.

Line 1: div class="posts"

Line 2: /div

Line 3: object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="559" height="125" id="RealPlayer1"

Line 4: param name="src" value="your audio stream url here"

Line 5: param name="autostart" value="true"

Line 6: param name="controls" value="All"

Line 7: param name="loop" value="false"

Line 8: param name="console" value="video"

Line 9: /object

Code is ended for Real Player. It will look like the picture below, if you see some mistakes in your code correct them.


If you want to see how does it look likes click here.

One thing more i want to tell you again is that you have to paste or write the url of your audio stream or the address of your audio track or mp3 whatever at the place in the code where i have written "your audio stream url here".

Step III: Add Window Media Player or Real Player Codes To Your Blog or Website:

Use in Blogger:
If you want to add it in blogger. Than go to edit post option, there you paste this code at the place where you want player to show. It can be in the middle of any text or images or only this player in this post.

Use in Blog or Website:
If you are making this code for a blog hosted by your own host or for a webpage. You can copy this code and paste it where ever you want media player to be shown.


Online Radio For Your Blog or Website Is Ready:

Yes, you have done it. Enjoy your online music. Do tell me about your opinions or whatelse i can do for you in the comments or email me at _01@live.com. Thankyou.