View Full Version : 'OBJECT' player code does not validate. (attribute that does not exist)

10-27-2010, 01:58 PM
What is the correct method to code this so there are no errors ?

<OBJECT ID="MediaPlayer" WIDTH="300" HEIGHT="300" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="Video.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<PARAM name="ShowDisplay" VALUE="ture">
<EMBED TYPE="application/x-mplayer2" SRC="Video.wmv" NAME="MediaPlayer" WIDTH="300" HEIGHT="300" ShowControls="1" ShowStatusBar="1" ShowDisplay="1" autostart="0"> </EMBED>

Major Payne
10-28-2010, 07:17 AM
There is only ONE embed tag. Insert the embed tag with javascript to validate, but best to just delete it as it is a non-standard tag.

Windows Media Player Reference (http://www.w3schools.com/media/media_playerref.asp)

10-28-2010, 09:08 AM
Take a look at (the bottom of) http://www.alistapart.com/articles/byebyeembed/