Forum Moderators: open

Message Too Old, No Replies

<embed> validation in XHTML

         

lostoath

3:32 pm on May 24, 2006 (gmt 0)

10+ Year Member



I'm validating my pages with Doctype: XHTML 1.0 Transitional and embeded tag causes problems.
Any alternatives to play wmv streaming videos in FF?

<object id="MediaPlayer" width="320" height="300" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject">
<param name="FileName" value="../images/sections/videos/clip.wmv" />
<param name="ShowControls" value="true" />
<param name="ShowStatusBar" value="true" />
<param name="ShowDisplay" value="false" />
<param name="autostart" value="true" />
<!-- embed wont validate. -->
<embed type="application/x-mplayer2" src="../images/sections/videos/clip.wmv" width="320" height="300" showcontrols="1" showstatusbar="1" showdisplay="0" autostart="1"></embed>
<!-- FireFox support is more important I guess... -->
</object>

encyclo

4:15 pm on May 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, lostoath!

I agree entirely with the comment you put in your markup. ;)

<!-- FireFox support is more important I guess... -->

I would simply leave the markup with the

embed
element in place, it is well-formed and will be ignored by user agents which don't support it. Validation is just a tool. :)

lostoath

9:17 am on May 26, 2006 (gmt 0)

10+ Year Member



Hey encyclo,

Thanks. I guess validation IS just a tool. :)

Fotiman

3:34 pm on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You might also consider using SWFObject, using <script> to generate the embeded object. With the IE changes that now require you to "activate" a control before using it, this might kill 2 birds with 1 stone for you.