Embedding Windows Media Player into web pages:
The goal of this article is to explain in relatively simple terms how to get Windows Media Player embedded into your web site. In order to do this, you will have to have basic HTML knowledge and access to the HTML code of the page in which you would like to embed the player.
Windows Media Player is fairly simple to get onto your web site once you understand the basics. To begin with you will need to have a valid HTML page which you can edit. The minimum you need for a blank HTML page is the following:
<HTML>
<BODY>
</BODY>
</HTML>
Below I will go through the HTML code needed to successfully embed windows media player into your web page line by line.
The first thing you need to do is to add the relevant OBJECT tag. This identifies the Windows Media Player ActiveX control to the browser and sets up any initial definitions. You must place the OBJECT tag inside the BODY portion of the HTML code:
<object classid=”clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6″ codebase=”http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112“ ID=”Video” width=”640″ height=”552″>
</object>
The ‘ID’ above refers to the unique name for each player instance on a webpage. For example if you wanted to embed more than one player on a page you would have to give each a unique ‘ID’ (ID’s can be anything, it’s up to you what you name them, but good practice would dictate that you don’t use any special characters or spaces). The ‘width ‘ and ‘height’ obviously refer to the size of the player you would like to embed. You control other player options by using ‘param’ tags, which look like those shown below:
<param name=”ShowControls” value=”1″>
-Use “1” to show the control button(play, stop, etc…).” “0” will hide the controls.
<param name=”AutoStart” value=”1″>
-Use “1” to start the video playing as soon as someone gets to your web page.
<param name=”Rate” value=”1″>
-Specifies the playback rate. 0.5 equates to half the normal playback speed, 2 equates to twice.<param name=”ShowStatusBar” value=”1″>
<param name=”StretchToFit” value=”1″>
-Specifies whether video displayed by the control automatically sizes to fit the video window, when the video window is larger than the dimensions of the video image.
<param name=”uiMode” value=”mini”>
<param name=”SRC” value=”YOUR URL HERE”>
<param name=”URL” value=” YOUR URL HERE “>
Once you are done, your embed code should look something like the sample below. Feel free to copy and paste the below sample and enter your file details in.
<object classid=”clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6″ codebase=”http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112“ ID=”Video” width=”640″ height=”552″>
<param name=”ShowControls” value=”1″>
<param name=”AutoStart” value=”1″>
<param name=”Rate” value=”1″>
<param name=”ShowStatusBar” value=”1″>
<param name=”StretchToFit” value=”1″>
<param name=”uiMode” value=”mini”>
<param name=”SRC” value=”YOUR COMPLETE URL HERE”>
<param name=”URL” value=” YOUR COMPLETE URL HERE “>
</object>
Thanks for the post, enjoyed it.
I don’t know whether it’s just me or if perhaps everyone else encountering issues with your
blog. It appears like some of the text within your content are running off the screen.
Can someone else please provide feedback and let me know if this is happening to them too?
This could be a issue with my internet browser because I’ve had this happen before. Appreciate it
Hi there,
I think this might be a problem with your browser because I’ve viewed our blog with three different machines and three different browsers and I’m not experiencing any issues like that. Perhaps try switch to a different browser?
If there’s anyone else who’s experiencing the same issue, let us know by adding a comment to this blog,
Many thanks,
Danny
Precisely how much time did it require u to publish “Embedding Windows Media Player into web pages
http://www.mydeo.com”? It has got a large amount of fine material.
Thx ,Dollie
Thanks for your comment,
Even if you only have limited HTML knowledge, it shouldn’t take longer than 10 minutes to get your player working using this article. The majority of the post talks you through the process but if you skip straight to the bottom, who have the full embed code ready for you to copy.
Many thanks
Danny
I’m a student studying at University of Mississippi and genuinely appreciate what you have acquired here, definitely like what you’re saying and the
way with which you declare it. Your article was splendidly balanced between entertaining
and intelligent. I am thrilled to trade ideas and insight
with you. Your website is undoubtedly one of the better blogs available right
now.