How to embed a .wmv file in a webpage
Ever wanted to have a .wmv file play automatically when a user visits your website? This is how you'd do it. Each embedded player instance on your Web page needs the object definition to clarify which version of the Windows Media Player will be called. This is identified by both the CLSID reference and the CODEBASE definition.
Here's the code to embed a Windows Media File into an HTML page:
<param name="filename" value="http://yourdomain/yourmovie.wmv">
<param name="Showcontrols" value="True">
<param name="autoStart" value="True">
<embed type="application/x-mplayer2" src="http://media.pmcmovies.com/SixtiesLove.wmv" name="MediaPlayer" width=320 height=240></embed>
</object>

on October 5th, 2007 at 10:45 am
Thanks for the code. I've been looking for a lot of them, and yours is the only one that works. Unfortunately, my Internet Explorer keeps popping up the information bar asking me if I'm sure I want to see the active content. I followed the instructions in the help to turn it off, but it still keeps popping up! (I have XP) Too annoying to use.
But thanks anyway. Your code works great.
May
on October 17th, 2007 at 11:21 am
agreed! yours is the only code I've found that works.
Thanks!
on October 31st, 2007 at 10:26 am
thank you for the code!
this is the best code that i have found on the net and which is very understandable. thanks again
on December 17th, 2007 at 2:21 pm
Excellent Code - works with no problems. Thanks for this.
on March 8th, 2008 at 5:02 pm
wow! This really works! I was getting very frustrated until I found this code! Great!
on April 29th, 2008 at 2:55 pm
How do you avoid the black startup screen? I'd like the player to feature a still photo from my video…to entice viewers.