How to Embed a Windows Media Player in a Web Page
With the media-heavy style of the Internet these days, knowing how to embed Windows Media files could make a significant difference in the success of your website. To embed Windows Media files in your website, you will need to edit the HTML code. Once you have uploaded your media files to your website host, you will be ready to embed.
Instructions
-
-
1
Open your website HTML code in your HTML editor and find the specific place where you want to embed your Windows Media file.
-
2
Copy and past the following code into your editor:
<OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="videofilename.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="videofilename.wmv" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>
-
-
3
Replace "videofilename.wmv" in the code with the name of your uploaded media file. It appears in two places in the code: line four and line nine.
-
4
Turn "autostart" on or off by editing line five and line 11 of the code. Autostart is set to off in this code by default. To enable autostart, type "true" where "false" appears in line five and type "1" where "0" appears next to "autostart" in line 11.
-
5
Save your edited HTML document. Windows Media Player is ready to upload to your website.
-
1
Tips & Warnings
Keep in mind that only users who have Windows Media Player 6.4 or newer will be able to view your embedded media files.