Validating DivX web player code
Posted: Fri, 2006-04-14 18:10
Hi,
I recently discovered the DivX web player plugin and I'm really interested in using it on my website, however its code does not validate against XHTML 1.0 strict DTD.
Here is the code it uses (from the DivX Web Player code generator):
<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="320" height="260" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"> <param name="src" value="video.avi" /> <embed type="video/divx" src="video.avi" width="320" height="260" pluginspage="http://go.divx.com/plugin/download/"> </embed> </object>
The EMBED tag does not validate... I tried removing it and passing its attributes into PARAM tags, but it does not seem to work.
Code I tried (displays nothing):
<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="320" height="260" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"> <param name="src" value="video.avi" /> <param name="type="video/divx" /> <param name="pluginspage" value="http://go.divx.com/plugin/download/" /> </object>
Of course I tried lots of other combinations, adding or removing PARAM tags...
Resources I found on the EMBED and OBJECT tags did not prove helpful on the subject...
Is going Transitional the only solution?
I'm a perfectionist
and perfect is a skinned knee


Leader
Posts: 856
Joined: 2004-04-07
Location: Bedford, UK
Validating DivX web player code
Posted: Fri, 2006-04-14 18:13
Does this help at all?
http://realdev1.realise.com/rossa/rendertest/quicktime.html
My strategy is so simple an idiot could have devised it!
"Also, your CSS (no offence) makes me want to gouge my eyes out with a rusty spoon" - TPH
Moderator
Posts: 6005
Joined: 2005-02-22
Re: Validating DivX web player code
Posted: Fri, 2006-04-14 22:31
I doubt its a solution at all. <EMBED> is a proprietory element originally introduced by Netscape. It was never part of any HTML spec., so it shouldn't ever validate.
Validation is a tool, not a stricture. That doesn't mean validation should be flouted unnecessarily, but the overall goal of validation is to make portable, maintainable pages that work consistently across different user agents (browsers).
If you must use <EMBED> (and if Hellsbells isn't suggesting otherwise) then its your decision on foregoing the content or building the page to standard and then adding <EMBED> to support IE.
/edit however this will probably work for all IE object/embed combinations.
On Having Layout | The One True Layout | menus by listamatic
Enthusiast
Posts: 96
Joined: 2003-04-19
Location: Paris, France
Validating DivX web player code
Posted: Sun, 2006-04-16 14:42
Thank you both for your answers. I tried different things with the codes you offered, everything works perfectly in IE, but does not in Firefox. It seems the EMBED tag is absolutely mandatory to the DivX web player plugin (I either get no display at all, or an "illegal plugin operation" message, depending on the code i use).
I'm a perfectionist
and perfect is a skinned knee
Moderator
Posts: 6417
Joined: 2004-06-25
Location: Dallas
Validating DivX web player code
Posted: Sun, 2006-04-16 19:12
Not tested.
Firefox has excellent support for object. However, you must use the correct MIME type and reference the source correctly.
IE is the one with poor support for object.
cheers,
gary
A pianist who has learned the wrong system of fingering cannot become a virtuoso until he has laboriously taught himself the proper method.
There are enough html & css demos and tutorials to be interesting. Please visit.
Enthusiast
Posts: 96
Joined: 2003-04-19
Location: Paris, France
Validating DivX web player code
Posted: Mon, 2006-04-17 09:23
What I was trying to say is that perhaps the problem comes from the DivX plugin, not Firefox.
I have tried various combinations of
type="video/x-dvx" (what you posted) / type="video/divx" (code given by the divx generator) / type="video/x-divx"
with
data="video.avi" / movie="video.avi" / src="video.avi"
and none of them worked. I give up.
I'm a perfectionist
and perfect is a skinned knee
newbie
Posts: 2
Joined: 2006-08-18
DivX plugin has a bug
Posted: Fri, 2006-08-18 11:20
Yes, that's the reason why it crashes on firefox when you try to add a [param] to the [object]
Hope the new plugin version will have it fixed and their code validates
newbie
Posts: 2
Joined: 2006-08-18
DivX Validated as XHTML1.1
Posted: Fri, 2007-12-21 00:03
Valid XHTML 1.1 DivX Web Player plugin code
Just yesterday I got back to this DivX web player plugin validation issue and managed to validate as XHTML1.1!
<object type="video/divx" data="http://trailers.divx.com/Fox/ThankYouForSmoking.divx" width="320" height="226"><param name="type" value="video/divx" />
<param name="src" value="http://trailers.divx.com/Fox/ThankYouForSmoking.divx" />
<param name="data" value="http://trailers.divx.com/Fox/ThankYouForSmoking.divx" />
<param name="codebase" value="http://trailers.divx.com/Fox/ThankYouForSmoking.divx" />
<param name="mode" value="full" />
<param name="minVersion" value="1.0.0" />
<param name="pluginspage" value="http://go.divx.com/plugin/download/" />
<param name="allowContextMenu" value="true" />
<param name="autoStart" value="false" />
<param name="url" value="http://trailers.divx.com/Fox/ThankYouForSmoking.divx" />
</object>
I tested it on WinXP SP2: IE7, FF 2.0.0.11 and Opera 9.23.
It works! And is XHTML1.1 valid!
Give it a try and post back, especially on other OS in other browsers!
Note: (DON'T update to the v1.4.0 Beta 1 and Beta 2 DivX Web Player plugin, lots of complaints about it, as you may have found out!)
Guru
Posts: 9199
Joined: 2004-06-30
Location: Milton Keynes
Never embedded any divX
Posted: Fri, 2007-12-21 11:10
Never embedded any divX movies in pages yet, but this should come in handy for those of us that do. Thanks for remembering us and coming back