The method for embedding a Windows Media video file on your web page is as follows
(replace all attribute values shown in braces with your own values; the '[0|1]' attribute values in the <embed> element represent a true|false value--> 0 = false, 1 = true):
<OBJECT ID="MediaPlayer" WIDTH="[width]" HEIGHT="[height]"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="[your_video_filename.wmv]">
<PARAM name="autostart" VALUE="[true|false]">
<PARAM name="ShowControls" VALUE="[true|false]">
<PARAM name="ShowStatusBar" VALUE="[true|false]">
<PARAM name="ShowDisplay" VALUE="[true|false]">
<embed type="application/x-mplayer2" src="[your_video_filename.wmv]"
name="MediaPlayer" width="[width]" height="[height]" ShowControls="[0|1]"
ShowStatusBar="[0|1]" ShowDisplay="[0|1]" autostart="[0|1]"> </embed>
</OBJECT>
Here is a sample with actual values:
<OBJECT ID="MediaPlayer" WIDTH="400" HEIGHT="300"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="myvideo.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<PARAM name="ShowStatusBar" VALUE="true">
<PARAM name="ShowDisplay" VALUE="true">
<embed type="application/x-mplayer2" src="myvideo.wmv"
name="MediaPlayer" width="400" height="300" ShowControls="1"
ShowStatusBar="1" ShowDisplay="1" autostart="0"> </embed>
</OBJECT>
You can easily include multiple Windows Media files by creating a playlist, which is just a simple text file that references each .wmv file, like this:
1. Use an ascii editor (e.g. Notepad or SimpleText) to create a video.wvx file, using a new
<entry>[--Path-to-media-file--]</entry>
for each file:
<ASX VERSION="3.0">
<ENTRY>
<REF HREF="http://your_domain.com/video.wmv" />
</ENTRY>
<ENTRY>
<REF HREF="http://your_domain.com/video_2.wmv" />
</ENTRY>
<ENTRY>
<REF HREF="http://your_domain.com/video_3.wmv" />
</ENTRY>
<ENTRY>
<REF HREF="http://your_domain.com/video_4.wmv" />
</ENTRY>
</ASX>
2. Upload the wvx file to the web server using ascii mode in your FTP program.
3. Upload the wmv file to the web server using binary mode in your FTP program.
4. Link to the wvx file from html, for example:
<a href="video.wvx" type="video/x-ms-wvx">Play video clip</a>