Embed a Video in Two Seconds
April 2nd, 2007 by David Bradley >> 2 Comments
Yesterday, we ran a video clip showing you how to fold your shirt in two seconds flat (see link above), a boon for anyone running Windows95 as we saw. Well, a couple of visitors were curious as to how we displayed the video in the first place because the video didn’t come from Youtube or a similar site where they give you the necessary code to embed the video in your blog, for instance.
Well, the kind folks at Fold Your Shirt tell visitors to share the video so I hope they don’t mind us hotlinking it (you could save it to your own server if you want to embed a video in your own blog). Anyway, here’s a simple bit of code courtesy of the Ozzu Webmaster Forum, which shows you how it’s done. All you have to do to make it work for the video of your choice is change http://www.yoursite.com/video.mpg to the appropriate URL. It should also work for avi files. Be sure to enclose the embed functions in a surrounding <div></div> otherwise the code will disrupt the layout of your blog. You will also have to cut and paste this code as plain text to make sure the quote marks are not smart quotes.
<div>
<object id=”MediaPlayer1″ CLASSID=”CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95″ codebase=”http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=5,1,52,701″ standby=”Loading Microsoft Windows® Media Player components…” type=”application/x-oleobject” width=”280″ height=”256″>
<param name=”fileName” value=”http://www.yoursite.com/video.mpg”>
<param name=”animationatStart” value=”true”>
<param name=”transparentatStart” value=”true”>
<param name=”autoStart” value=”true”>
<param name=”showControls” value=”true”>
<param name=”Volume” value=”-450″>
<embed type=”application/x-mplayer2″ pluginspage=”http://www.microsoft.com/Windows/MediaPlayer/” src=”http://www.yoursite.com/video.mpg” name=”MediaPlayer1″ width=280 height=256 autostart=1 showcontrols=1 volume=-450>
</object>
</div>

"Deceived Wisdom: Why What You Thought Was Right Is Wrong" from David Bradley. Available now on 


Leave a comment ↓
Kim Woodbridge // Dec 8, 2008 at 3:16 pm
Thanks David! This might be just what I was looking for. I’m going to try it later on today.
David Bradley // Dec 8, 2008 at 3:56 pm
Good luck. It’s been a while since I used this, but hopefully it’s still hackable in some form.