Flash and Windows Media Player movies do not start in Internet Explorer

An embedded WMP or Flash movie would not start when Internet Explorer loaded this page:

<html>
<BODY>
           
<table width="100%">
  <tr>
    <td>
      <div style='width:100%; height:100%; margin:0px;'>

<OBJECT ID="MediaPlayer" WIDTH=100% HEIGHT=100%
  CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
  STANDBY="Loading Windows Media Player components..."
  TYPE="application/x-oleobject"
CODEBASE="https://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,

1112">

  <PARAM name="autoStart" value="True">
  <PARAM name="filename" value="C:\Users\Public\Videos\Sample Videos\bear.wmv">

<EMBED TYPE="application/x-mplayer2"
    SRC="https://WebServer/MyFile.wvx"
    NAME="MediaPlayer"
    WIDTH=100%
    HEIGHT=100%>
  </EMBED>
</OBJECT>
    </div>
    </td>
  </tr>
/table>

</BODY>
</html>

Looking through the code I found that the control was not sent the OleControlSite Activate command that would start the display and the movie playing.

Fix: Change one of the size parameters to be Pixels instead of % and the movie will activate and run (true for Flash as well). Alternatively you could have the jscript put focus on the control when the page loads which would have the same effect.