Log in

View Full Version : Markup Validation problem with embedded flash video



robertsaunders
08-04-2010, 03:16 PM
I'm having problems validating the code for a page to which I've just embedded a flash video.

The page is http://www.stairliftstoday.co.uk and the code embedded code is:

<object id="flashObj" width="486" height="412" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0"><param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="videoId=96477301001&playerID=25435957001&domain=embed&dynamicStreaming=true" /><param name="base" value="http://admin.brightcove.com" /><param name="seamlesstabbing" value="false" /><param name="allowFullScreen" value="true" /><param name="swLiveConnect" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" bgcolor="#FFFFFF" flashVars="videoId=96477301001&playerID=25435957001&domain=embed&dynamicStreaming=true" base="http://admin.brightcove.com" name="flashObj" width="486" height="412" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" swLiveConnect="true" allowScriptAccess="always" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>

Would appreciate some advice about how resolve this problem. Unfortunately I know virtually nothing about flash, so please keep it as simple as poss.

Thanks.

azoomer
08-04-2010, 03:24 PM
it is the <embed> tags that do not validate. It should be possible to "embed" the flash without this tag.
Take a look at this post as inspiration
http://www.dynamicdrive.com/forums/blog.php?b=36

robertsaunders
08-04-2010, 03:55 PM
Thanks for your reply. Took a look at the post but can't work out how rewrite my code without the embed tags and still make it work. Any ideas?

azoomer
08-04-2010, 04:19 PM
I am trying something like this

<object type="application/x-shockwave-flash" data="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" width="486" height="412">
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" />
<param name="flashVars" value="playerMode=embedded" />
<param name="wmode" value="transparent" />
</object>
but I must admit it's not really working for me. Seems like I can't access the video from another domain. You could try it though, but make a backup of your page first. Anybody with another suggestion ?

robertsaunders
08-04-2010, 04:38 PM
Hmm. The following works but it's still not valid HTML 4.01:

<object
type="application/x-shockwave-flash"
data="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1"
width="486"
height="412"
>
<param name="allowFullScreen" value="true" >
<param name="allowScriptAccess" value="always" >
<param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" >
<param name="flashVars" value="videoId=96477301001&playerID=25435957001&domain=embed&dynamicStreaming=true" >
<param name="wmode" value="transparent" >
<param name="classid" value="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
</object>

Now it's just this line that's not valid:
<param name="flashVars" value="videoId=96477301001&playerID=25435957001&domain=embed&dynamicStreaming=true" >

(http://validator.w3.org/check?uri=http%3A%2F%2Fwww.stairliftstoday.co.uk%2Findex2.htm&charset=%28detect+automatically%29&doctype=Inline&group=0&accept=image%2Fgif%2C+image%2Fjpeg%2C+image%2Fpjpeg%2C+application%2Fx-ms-application%2C+application%2Fvnd.ms-xpsdocument%2C+application%2Fxaml%2Bxml%2C+application%2Fx-ms-xbap%2C+application%2Fx-shockwave-flash%2C+application%2Fvnd.ms-powerpoint%2C+application%2Fvnd.ms-excel%2C+application%2Fmsword%2C+*%2F*&accept-language=en-us&user-agent=W3C_Validator%2F1.1)

Anyone got any more ideas?

azoomer
08-04-2010, 04:43 PM
try this

<object type="application/x-shockwave-flash" data="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" width="486" height="412">
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/25435957001?isVid=1" />
<param name="flashVars" value="videoId=96477301001&amp;playerID=25435957001&amp;domain=embed&amp;dynamicStreaming=true" />
<param name="wmode" value="transparent" />
</object>
changing ( encoding ) the ampersands
It seems to work ( i hope)

robertsaunders
08-04-2010, 04:46 PM
Yes, thanks. Had just tried that when your message came through.
Got there in the end.

Thanks.

azoomer
08-04-2010, 04:58 PM
Great