• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 702
  • Last Modified:

embed wmv file into webpage

I'm trying to get a wmv file to play in a webpage.  I've created a simple html page and when I test the page using VS2008 internal browser, the wmv file plays.  However, if I test it using IIS, the video won't play.  The page opens, but the wmv file is black (see the attached screeshot) and just won't start.  I have autostart set to true.

I thought the problem was with the mime type in IIS, so I tried adding the extension and mime type, but that made no difference.

See the code that I'm using below.

Any help is appreciated.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
.style1 {font-size: 36px}
body {
	background-color: #A8DB82;
<table border="1" align="center" bordercolor="#73C238" bgcolor="#A8DB82">
    <td align="center" valign="middle"><span class="style1">
	    <object id="MediaPlayer" width="600" height="500" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components&" type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
        <param name="filename" value="SWF/PD_Prototype_Master_Danu_1.wmv">
        <param name="Showcontrols" value="True">
        <param name="autoStart" value="True">
        <embed type="application/x-mplayer2" src="SWF/PD_Prototype_Master_Danu_1.wmv" name="MediaPlayer" width="600" height="500"></embed>

Open in new window

  • 2
1 Solution
I have read somewhere before that both wmv files and http use port 80, and that a conflict occurs.  I'm not sure what to do to resolve the conflict, but it might be why you don't have the issue on the internal web server with studio: the web runs on a different port.  So I'm thinking, in IIS or in the <embed> somwhere, a different port could/should be specified (for the wmv)?  
I also noticed that for IIS 7 there is an extension available that might help:

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now