Embed Windows Media Player

The section contains stuff related to the HTML/DHTML/XHTML for Web Page Development.

Embed Windows Media Player

Postby Web Guru on March 27th, 2008, 10:07 am

The following code will enable you to embed any windows media player file in your web page. Just set the path of your media file in the src attribute of embed tag and value attribute of param fileName.

Code: Select all
<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.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="one.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="one.mpg" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450>
</object>
User avatar
Web Guru
 
Posts: 66
Joined: March 24th, 2008, 7:59 am
Location: Lahore, Pakistan

Return to HTML / DHTML / XHTML

Who is online

Users browsing this forum: No registered users and 0 guests

cron