Advertisement

06.04.2008 at 08:47AM PDT, ID: 23457173
[x]
Attachment Details

Embed video and validate in XHTML 1.0 strict

Asked by theclay in Extensible HTML (XHTML), Web Authoring

Tags: HTML, Firefox, http://www.heart4haitians.com/videos/showvideo.php

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-b0f6-11d0-94ab-0080c74c7e95'
                                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-oleobject'>
                                <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-mplayer2'
                                    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
[+][-]06.04.2008 at 09:31AM PDT, ID: 21711688

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Extensible HTML (XHTML), Web Authoring
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628