You are in: home » webdesign » article

Embedded Flash objects, from HTML to valid XHTML Strict

Page 2 of 3

Tags: XHTML Flash

Google video

Original HTML code:

<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=5749265234927691071&hl=it" flashvars="">
</embed>

XHTML Strict code:

<object type="application/x-shockwave-flash" data="http://video.google.com/googleplayer.swf?docId=5749265234927691071&amp;hl=it" height="326" width="400">
<param name="movie" value="http://video.google.com/googleplayer.swf?docId=5749265234927691071&amp;hl=it" />
<param name="flashvars" value="" />
</object>

In order to activate the autoplay option, the flashvars parameter has to be edited: <param name="flashvars" value="autoPlay=true" />

DailyMotion video

Original HTML code:

<object width="425" height="364">
<param name="movie" value="http://www.dailymotion.com/swf/7qdmIvSAi4EUIHkF"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="http://www.dailymotion.com/swf/7qdmIvSAi4EUIHkF" type="application/x-shockwave-flash" width="425" height="364" allowFullScreen="true" allowScriptAccess="always"></embed>
</object>

XHTML Strict code:

<object type="application/x-shockwave-flash" width="425" height="364" data="http://www.dailymotion.com/swf/7qdmIvSAi4EUIHkF">
<param name="movie" value="http://www.dailymotion.com/swf/7qdmIvSAi4EUIHkF"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
</object>

To add the autoplay option, add the character string: &amp;autoStart=1 (or &amp;autoPlay=1) to the data attribute and the movie parameter.

Revver video

Original HTML code:

<object width="480" height="392" data="http://flash.revver.com/player/1.0/player.swf?mediaId=478670" type="application/x-shockwave-flash" id="revvervideoa17743d6aebf486ece24053f35e1aa23">
<param name="Movie" value="http://flash.revver.com/player/1.0/player.swf?mediaId=478670"></param>
<param name="FlashVars" value="allowFullScreen=true"></param>
<param name="AllowFullScreen" value="true"></param>
<param name="AllowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" src="http://flash.revver.com/player/1.0/player.swf?mediaId=478670" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" flashvars="allowFullScreen=true" allowfullscreen="true" height="392" width="480"></embed>
</object>

XHTML Strict code:

<object width="480" height="392" data="http://flash.revver.com/player/1.0/player.swf?mediaId=478670" type="application/x-shockwave-flash" id="revvervideoa17743d6aebf486ece24053f35e1aa23">
<param name="Movie" value="http://flash.revver.com/player/1.0/player.swf?mediaId=478670"></param>
<param name="FlashVars" value="allowFullScreen=true"></param>
<param name="AllowFullScreen" value="true"></param>
<param name="AllowScriptAccess" value="always"></param>
</object>

To add the autoplay option, add the parameter: <param name="AutoStart" value="true" />

Brightcove video

Original HTML code:

<embed src='http://www.brightcove.tv/playerswf' bgcolor='#FFFFFF' 
flashVars='initVideoId=1260669383&servicesURL=http://www.brightcove.tv&viewerSecureGatewayURL=https://www.brightcove.tv&cdnURL=http://admin.brightcove.com&autoStart=false' 
base='http://admin.brightcove.com' name='bcPlayer' width='486' height='412' allowFullScreen='true' allowScriptAccess='always' seamlesstabbing='false'
type='application/x-shockwave-flash' swLiveConnect='true'  pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>
</embed>

XHTML Strict code:

<object width="486" height="412" data="http://www.brightcove.tv/playerswf?initVideoId=1260669383&amp;servicesURL=http://www.brightcove.tv&amp;viewerSecureGatewayURL=https://www.brightcove.tv&amp;cdnURL=http://admin.brightcove.com&amp;autoStart=false" type="application/x-shockwave-flash" id="revvervideoa17743d6aebf486ece24053f35e1aa23">
<param name="Movie" value="http://www.brightcove.tv/playerswf?initVideoId=1260669383&amp;servicesURL=http://www.brightcove.tv&amp;viewerSecureGatewayURL=https://www.brightcove.tv&amp;cdnURL=http://admin.brightcove.com&amp;autoStart=false"  />
<param name="base" value="http://admin.brightcove.com" />
<param name="seamlesstabbing" value="false" />
<param name="AllowFullScreen" value="true" />
<param name="AllowScriptAccess" value="always" />
</object>
Pages:  «Prev 1 2 3 Next»

Show all the article's pages in one single long page. All in one page

referrers Check incoming links to this article, according to Yahoo!.

|

react Send your reaction to this article by email.

|

bookmark Save this article using an online web2.0 service, the bookmark can be priate or can be shared with the rest of the world.

|

print If Javascript is disabled you'll need to use your browser's control to print this pages.