Web Global Net Web Application & Web Development Project Center

Web Site Planning Related => General Web Development Questions => Topic started by: admin on April 27, 2007, 10:46: AM



Title: Embedding Windows Media on a web page
Post by: admin on April 27, 2007, 10:46: AM
The following example is for a Windows Media file:

<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="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" 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>

For maximum browser compatibility this method uses two tags:

    * <object> For Internet Explorer.
    * <embed> For Firefox etc.

As you can see, these tags are basically duplicates. You will need to set the file name and any other parameters for each tag.