Is there a way to embed a wmv file in a web page so that it validates in xhtml 1.0 strict. I have the following code now and it works great but gives a ton of errors, the first one says "there is no attribute classid", no attribute codebase, etc.
Here's what I'm using now (note a little php included since the page shows more than one video):
<OBJECT classid='CLSID:22d6f312-b0
f6-11d0-94
ab-0080c74
c7e95'
codebase='
http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobj
ect'>
<param name='fileName' value="<?php print $thisvid;?>" />
<param name='animationatStart' value='true' />
<param name='transparentatStart' value='true' />
<param name='autoStart' value="true" />
<param name='showControls' value="true" />
<param name='loop' value="false" />
<param name="AutoSize" value="true" />
<EMBED type='application/x-mplaye
r2'
pluginspage='
http://microsoft.com/windows/mediaplayer/en/download/' id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="<?php print $thisvid;?>" autostart="true" designtimesp='5311' loop="true" />
</EMBED>
</OBJECT>
Start Free Trial