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

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

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

Rate this post: 1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 4.50 out of 5)
Loading ... Loading ...
If you found this post useful, please consider a small donation.
» 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.

5 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?

  3. petri on January 24th, 2009 1:08 pm

    How about many wmv files in a single player?

  4. Verna on April 16th, 2009 8:20 am

    You forgot to state to place code between tags. I also, have a video in .wmv that I converted to .flv and it looks more clearer in .wmv then flash. What did I do wrong besides developing it in .wmv first?

    Thank You

  5. pallavi on September 15th, 2009 8:39 am

    Very nice.
    Thank you

Leave a Reply




flash games company