streaming videos in xhtml

Suspended
Joined
30 Jan 2005
Posts
467
hey guys, the regular code i use to stream vids in html brings up 30 errors in xhtml strict lol. is there a strict compliant code available? my google search brought up nothing.
 
heres the code :)

<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>
 
ok, in small caps it brings it down to 15 errors.

<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="MOV01561.MPG">
<param name="ShowControls" value="true">
<param name="ShowStatusBar" value="true">
<param name="ShowDisplay" value="true">
<param name="autostart" value="true">
<embed type="application/x-mplayer2" src="MOV01561.MPG" NAME="MediaPlayer"
width="192" height="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </embed>
</object>
 
Last edited:
joemorris86 said:
ok, in small caps it brings it down to 15 errors.

<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="MOV01561.MPG">
<param name="ShowControls" value="true">
<param name="ShowStatusBar" value="true">
<param name="ShowDisplay" value="true">
<param name="autostart" value="true">
<embed type="application/x-mplayer2" src="MOV01561.MPG" NAME="MediaPlayer"
width="192" height="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </embed>
</object>


* You need to close empty elements with '/>', not just '>'. So, your param tags would be <param name="autostart" value="true" />.
* The 'name' parameter is also deprecated in xhtml; you should use 'id' instead. ie: <param id="autostart" value="true">

Also have a read of this and this for the differences between xhtml and html.
 
Back
Top Bottom