<< Go Back
Flash And Windows Media Player Movies Do Not Start In Internet Explorer
- 26 Mar 2008
An embedded WMP or Flash movie would not start when Internet Explorer loaded this page:
<table width=”100%”>
<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=”<http://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=”[http://WebServer/MyFile.wvx](http://webserver/MyFile.wvx)“
NAME=”MediaPlayer”
WIDTH=100%
HEIGHT=100%>
</EMBED>
</OBJECT>
</div>
|
/table>
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.<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” />
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.<p mce_keep="true"> </p>
<< Go Back