Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2003
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Media Player Full Screen with Javascript

    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?
    ·JGADesign·

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Check out this link:
    http://www.mcse.ms/message671347.html

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

    Sadiq.

  • #3
    New Coder
    Join Date
    Oct 2003
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?
    ·JGADesign·


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •