Is it possible to correctly validate an xhtml page with the object ID
and embed necessary to implant a windows media player in an html page?
Here is the code suggested by
http://www.streamalot.com/embed.shtml.
This validator
http://validator.w3.org/file-upload.html doesn't like
it at all.
Some of the attributes, such as "align" and "pluginspage" aren't valid
attributes. About the best I could do using xhtml is the following:
<p><object id="mediaplayer1" width="180" height="200"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="
http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2
inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject" >
<param name="FileName" value="Server/file" />
<param name="ShowStatusBar" value="true" />
<param name="DefaultFrame" value="mainFrame" />
<!-- For other browsers * Windows Media Player -->
<!--[if !IE]> <-->
<object width="180" height="200" type="application/x-mplayer2">
<param name="FileName" value="Server/file" />
<param name="ShowStatusBar" value="true" />
<param name="DefaultFrame" value="mainFrame" />
</object>
<!--> <![endif]-->
</object></p>
It works for IE and Gecko based browsers and does validate as xhtml
strict. Not sure about others, but I don't think Opera supports the
object element. There's probably a better method. You
might consider using an html doctype.