Hello,
I have a problem with embedding mediaplayer; the code works in IE, but not in mozilla firefox when I control movie with button - movie starts play when the button is clicked. I have read many posts in forums, but couldn't solve it. I don't want to use inner html, css, etc... I neeed a simple solution. Could anyone help me?
Thank you.
Here is the code:
<body>
<OBJECT
ID="MediaPlayer"
WIDTH="160"
HEIGHT="130"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="_i.wmv">
<PARAM NAME="autostart" VALUE="false">
<PARAM NAME="showcontrols" VALUE="false">
<embed
ID="player"
WIDTH="160"
HEIGHT="130"
TYPE="application/x-mplayer2"
SRC="_i.wmv"
AUTOSTART="0"
SHOWCONTROLS="0">
</embed>
</OBJECT>
<IMG SRC="rodyti1.bmp" NAME="but"
onMouseOver="document.but.src='rodyti2.bmp'"
onMouseOut="document.but.src='rodyti1.bmp'"
onclick="document.getElementById('player').play()">
</body>
I have a problem with embedding mediaplayer; the code works in IE, but not in mozilla firefox when I control movie with button - movie starts play when the button is clicked. I have read many posts in forums, but couldn't solve it. I don't want to use inner html, css, etc... I neeed a simple solution. Could anyone help me?
Thank you.
Here is the code:
<body>
<OBJECT
ID="MediaPlayer"
WIDTH="160"
HEIGHT="130"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="_i.wmv">
<PARAM NAME="autostart" VALUE="false">
<PARAM NAME="showcontrols" VALUE="false">
<embed
ID="player"
WIDTH="160"
HEIGHT="130"
TYPE="application/x-mplayer2"
SRC="_i.wmv"
AUTOSTART="0"
SHOWCONTROLS="0">
</embed>
</OBJECT>
<IMG SRC="rodyti1.bmp" NAME="but"
onMouseOver="document.but.src='rodyti2.bmp'"
onMouseOut="document.but.src='rodyti1.bmp'"
onclick="document.getElementById('player').play()">
</body>