Flash’s Über Compatibility

Here is the HTML that Adobe Recommends to embed a flash file:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="550" HEIGHT="400" id="myMovieName"><PARAM NAME=movie VALUE="myFlashMovie.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED href="/support/flash/ts/documents/myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>

It is compatible with IE3 and Netscape 2. Really? Do we need that level of compatibility? I mean really!

And if you want something more “automated” you can use Adobe’s AC_RunActiveContent.js JavaScript file. Oh boy!

So I looked at the popular video sites and their “embed source” links. All are shorter and simpler. Blip.tv was the shortest. Here is what Blip.tv uses:

<embed src="http://blip.tv/play/AYGPzDgC" type="application/x-shockwave-flash" width="480" height="300" allowscriptaccess="always" allowfullscreen="true"></embed>

More examples are below.

SAMPLE SWF EMBED SCRIPTS:

GOOGLE:
<embed id=VideoPlayback src=http://video.google.com/googleplayer.swf?docid=7065205277695921912&hl=en&fs=true style=width:400px;height:326px allowFullScreen=true allowScriptAccess=always type=application/x-shockwave-flash> </embed>

YOUTUBE:
<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/HazPTm8R3kM&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/HazPTm8R3kM&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>

YAHOO VIDEO:
<div><object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=10032117&vid=3641591&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/5411/72731315.jpeg&embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=10032117&vid=3641591&lang=en-us&intl=us&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/5411/72731315.jpeg&embed=1" ></embed></object><br /><a href="http://video.yahoo.com/watch/3641591/10032117">E for All 2008 - Interview with Fusion-io</a> @ <a href="http://video.yahoo.com" >Yahoo! Video</a></div>

MYSPACE:
<font face="Verdana" size="1" color="#999999"><br/><a style="font: Verdana" href="http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=44045983">E for All 2008 - Interview with Fusion-io</a><br/><object width="425px" height="360px" ><param name="allowFullScreen" value="true"/><param name="wmode" value="transparent"/><param name="movie" value="http://mediaservices.myspace.com/services/media/embed.aspx/m=44045983,t=1,mt=video"/><embed src="http://mediaservices.myspace.com/services/media/embed.aspx/m=44045983,t=1,mt=video" width="425" height="360" allowFullScreen="true" type="application/x-shockwave-flash" wmode="transparent"></embed></object><br/><a style="font: Verdana" href="http://www.myspace.com/stuffwelike">Stuff We Like</a> | <a style="font: Verdana" href="http://vids.myspace.com">MySpace Video</a></font>

BLIP.TV
<embed src="http://blip.tv/play/AYGPzDgC" type="application/x-shockwave-flash" width="480" height="300" allowscriptaccess="always" allowfullscreen="true"></embed>