...

View Full Version : Media Player Full Screen with Javascript



jgallen23
06-01-2004, 08:13 AM
I was wondering if there was a way to create a link to make an embedded media player go to full screen. Is this possible with javascript or any other coding language?

sad69
06-01-2004, 09:06 PM
Check out this link:
http://www.mcse.ms/message671347.html

Basically, the name of the embedded media player, dot fullscreen = true;

Sadiq.

jgallen23
06-02-2004, 02:23 AM
I can't quite seem to get it to work. Here is the page:
http://www.margarettravolta.com/film.asp

here are the code snippets:
<script type="text/javascript">
function videoFullScreen()
{
MediaPlayer.FullScreen=true;
}
</script>

<object id="MediaPlayer"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft® 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="filename" VALUE="video\MT-Film-lightened-1.wmv">
<PARAM NAME="autoStart" VALUE="true"> <PARAM NAME="showControls" VALUE="true">
<param name="ShowStatusBar" value="true"> <PARAM NAME="Autorewind" VALUE="true">
<PARAM NAME="ShowDisplay" VALUE="false">
<EMBED SRC="video\MT-Film-lightened-1.wmv" type="application/x-mplayer2" name=MediaPlayer autostart=1 showcontrols=0 showstatusbar=1 autorewind=1 showdisplay=0>
</EMBED>
</OBJECT><br />
<div align="center">
<a href="javascript:videoFullScreen()">Click Here for Full Screen</a>
</div>

any ideas?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum