kaitco
06-05-2006, 07:25 AM
I have a video that I would like to display as full screen through windows media player. The way I currently have it set up works perfectly, but only in IE. FF, Netscape and Opera do not play the file.
I think that the problem lies with the script here:
<script type="text/javascript">
function keyPressHandler(e) {
var kC = (window.event) ? // MSIE or Firefox?
event.keyCode : e.keyCode;
var Esc = (window.event) ?
27 : e.DOM_VK_ESCAPE // MSIE : Firefox <--specifically with this
if(kC==Esc) window.close();
}
</script>
...however, I am not sure what the issue is or how to fix it.
Here is the code I am using for the embedded media player:
<body onkeypress="keyPressHandler(event)">
<object id="mediaPlayer" width="100%" height="100%"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="fileName" value="sweethome.mpg">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="loop" value="false">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" width="100%" height="100%"
src="sweethome.mpg" autostart="true" loop="true"></object>
</body>
The page (http://www.doriennesmith.com/dorienne/videos/sweethome.html) works fine in IE, but does not show with anything else. Can anyone tell me what I am doing wrong?
Many thanks!
I think that the problem lies with the script here:
<script type="text/javascript">
function keyPressHandler(e) {
var kC = (window.event) ? // MSIE or Firefox?
event.keyCode : e.keyCode;
var Esc = (window.event) ?
27 : e.DOM_VK_ESCAPE // MSIE : Firefox <--specifically with this
if(kC==Esc) window.close();
}
</script>
...however, I am not sure what the issue is or how to fix it.
Here is the code I am using for the embedded media player:
<body onkeypress="keyPressHandler(event)">
<object id="mediaPlayer" width="100%" height="100%"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="fileName" value="sweethome.mpg">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="loop" value="false">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" width="100%" height="100%"
src="sweethome.mpg" autostart="true" loop="true"></object>
</body>
The page (http://www.doriennesmith.com/dorienne/videos/sweethome.html) works fine in IE, but does not show with anything else. Can anyone tell me what I am doing wrong?
Many thanks!