Monday, October 4, 2010

Embed a video in Two Seconds

if you want to embed a video in your own blog.  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.
<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>

No comments:

Post a Comment