...

View Full Version : I get Validation Errors on the Video embed - what can I do about it ?



jeddi
12-22-2009, 12:55 PM
I was just validating my video web page and it
came up with 11 errors.

All of them are due to this code:


<embed flashVars="playerVars=showStats=no|autoPlay=yes|videoTitle=<?php echo $title ?>"
src="<?php echo $vid_link ?>"
width="700" height="604" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" allowFullScreen="false" allowScriptAccess="always" name="Metacafe">
</embed>

These are the errors:

Attribute "FLASHVARS" is not a valid attribute
Attribute "SRC" is not a valid attribute. Did you mean "src"?
Attribute "WIDTH" is not a valid attribute. Did you mean "width"?
Attribute "HEIGHT" is not a valid attribute. Did you mean "height"?
Attribute "WMODE" is not a valid attribute. Did you mean "code" or "frameborder"?
Attribute "PLUGINSPAGE" is not a valid attribute
Attribute "TYPE" is not a valid attribute. Did you mean "type"?
Attribute "ALLOWFULLSCREEN" is not a valid attribute
Attribute "ALLOWSCRIPTACCESS" is not a valid attribute
Attribute "NAME" is not a valid attribute. Did you mean "name"?
element "EMBED" undefined. Did you mean "meta" or "em"?

Half of these are very strange eg Attribute "SRC" is not a valid attribute. Did you mean "src"? and Attribute "WIDTH" is not a valid attribute. Did you mean "width"? Since what it suggests is what is in the code anyway !

This is the embed code taken from Metacafe so I don't see that I should be changing it - but I would like my webpage to be valid :confused:

abduraooft
12-22-2009, 01:25 PM
<embed> tag is deprecated and so most of its attributes. If it's an swf file, make use of swfObject(google it) method.

jeddi
12-22-2009, 06:07 PM
If <embed> tag is deprecated
why is big site like Metacafe still using it and
wanting members to use it ?

jeddi
12-22-2009, 06:54 PM
I am reading up on this swfobject which uses javascript to embed the
swf files.

They say that I need to have adobe flash player 9.0
Well I was going to use Flowplayer.

Does this mean that if I use swfobject then I can not use Flowplayer?
Or am I getting mixed up ?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum