How to: Can I make an embedded Windows Media video go full screen?

Windows Media Full Screen Button for Player using javascript and player API fullScreen()

 

<script language="JavaScript">
<!-- code for <head>
 
function fullScreen() {
   var player=document.getElementById("playah");
   if (player.DisplaySize==3)  {     // 3 means 'playing'
     player.fullScreen=true;
   }
}
//-->
</script>
<!-- <body> -->
<object id='playah' width='320' height='309'
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='your-filename.wmv'/>
	<param name='animationatStart' value='true'/>
	<param name='transparentatStart' value='true'/>
	<param name='autoStart' value='true'/>
	<param name='showControls' value='true'/>
	<param name='showStatusBar' value='true'/>
	<param name='showDisplay' value='false'/>
	<param name='loop' value='false'/>
	<embed type="application/x-mplayer2"
        pluginspage="http://www.microsoft.com/windows/windowsmedia/download/"
        filename="your-filename.wmv"
        src="http://www.path.to.gravlab.net/00xxxx/wmv"
        Name=MediaPlayer
        ShowControls=1
        ShowDisplay=1
        ShowStatusBar=1
        width=320
        height=309/>
 
</object>
<a href="javascript:fullScreen();">
 <img src="http://your-account.gravlab.net/00xxxx/directory/your-full-screen-button.jpg" width="145" height="73" border="0"/></a>

 

Business Video Services, Streaming Video Solutions and Video Pricing …learn more.

0