Embedding a wmv file in your web page

Just in case you have to embed a wmv file in your webpage, and there is no need to do it since it's possibile to play better videos with flash but... just in case you really have to do it... like I have to do it today... here it is the html code

HTML:
  1. <OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
  2. <PARAM NAME="FileName" VALUE="videofilename.wmv">
  3. <PARAM name="ShowControls" VALUE="true">
  4. <param name="ShowStatusBar" value="false">
  5. <PARAM name="ShowDisplay" VALUE="false">
  6. <PARAM name="autostart" VALUE="false">
  7. <EMBED TYPE="application/x-mplayer2" SRC="videofilename.wmv" NAME="MediaPlayer" WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
  8. </OBJECT>

Adjust height, width, ect to match your video settings.

Improve the blog rating this post
Tell me what do you think about this post. I'll write better and better entries.
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5 out of 5)
Loading ... Loading ...

» Template monster proudly presents HTML Templates in order to meet its customers' demands.
These HTML Templates can be easily edited with any HTML editor including the simplest one - Notepad.
They include .html files which makes them available for HTML editing.

2 Responses to “Embedding a wmv file in your web page”

  1. Harry on September 13th, 2007 11:42 am

    if only that it so easy; please try with flash; Can you play *.wmv in flash; and how to using in html code; if you can i will buy for you 100….beer…. or not please give me a party….Thanks

  2. Ky Hote on January 21st, 2008 8:08 am

    This seems to work in IE, but not in Mozilla. Do you have anny fixes for that?

Leave a Reply