Podcast Blog

Embeding Videos

October 16, 2007 · Leave a Comment

Here’s a simple bit of code courtesy of the Ozzu Webmaster Forum, which shows you how embed video in your blog or web page. 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>

Categories: Blogroll · web 2.0

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment