Forum Moderators: not2easy

Message Too Old, No Replies

Full Screen Button for Embedded Media Player

         

jozeph

10:36 pm on Dec 9, 2003 (gmt 0)

10+ Year Member



I have an embedded media player on a webpage. I want to add a button for the video to open in full screen mode. I've used to code from the MSDN example, but to no avail. Here is the source code from my HTM file.

<html><head></head>
<body>
<p align="center">
<OBJECT ID="Player" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject" height="260" width="240">
<PARAM NAME="fileName" VALUE="Video\KHH Version\Unit 1 - Navigation Files\Unit 1 - Navigation Mastera.avi">
<PARAM NAME="animationatStart" VALUE="False">
<PARAM NAME="transparentatStart" VALUE="False">
<PARAM NAME="autoStart" VALUE="True">
<PARAM NAME="showControls" VALUE="True">
<PARAM NAME="ShowStatusBar" VALUE="True">
</OBJECT></p>
<p align="center">
<INPUT type = "button"
value = "Full Screen Mode"
name = FSBUTTON
onclick = "if (document.Player.playState == 3) document.Player.fullScreen='true';">
</body>
</html>

------

Anyone sucessfully do this? HELP I've been working on it for over a day.