Results 1 to 5 of 5

Thread: Embedded Video in Firefox: Automatically Enlarge

Hybrid View

  1. #1
    Join Date
    Oct 2005

    Embedded Video in Firefox: Automatically Enlarge

    After clicking on a link a new window shall open and play an embedded wmv-file.
    So far okey, but this embedded video is to be automatically resized to a larger size than it actually is (e.g. to 200%). It works with IE, but FF only enlarges the player size and not the video size itself, so that I end up with the small original size video screen in a large media player. Anybody know how to solve that?

    Code so far:

    <OBJECT ID="WMPlay" width=640 height=480 classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,70" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
    <PARAM name="URL" value="video.wmv">
    <PARAM name="DisplaySize" value=0>
    <PARAM name="AllowChangeDisplaySize" value="True">
    <PARAM NAME=ShowControls VALUE=1>
    <PARAM NAME="WindowlessVideo" Value="0">
    <PARAM NAME=ShowDisplay VALUE=1>
    <PARAM NAME=ShowStatusBar VALUE=1>
    <PARAM NAME=InvokeURLS Value=False>
    <embed name="WMplay" width="640" height="480" type="application/x-mplayer2"
    src="video.wmv" Name="Video File" AllowChangeDisplaySize="True" ShowControls="1" AutoStart=True ShowDisplay="0" ShowStatusBar="1">
    Last edited by azuremain; 10-25-2005 at 04:00 AM.

  2. #2
    Join Date
    Jan 2007
    i know this is an old thread but i am having the exact same problem, here is the code im using.

    HTML Code:
    <embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download" id="MediaPlayer" name="mp_426289569" src="http://www.gamedia-world.com/media/TDRC4.wmv" autosize="1" autostart="1" clicktoplay="0" displaysize="0" enablecontextmenu="1" enablefullscreencontrols="1" enabletracker="1" transparentatstart="0" mute="0" playcount="1" showcontrols="1" showaudiocontrols="1" showdisplay="0" showgotobar="0" showpositioncontrols="1" showstatusbar="1" showtracker="1" height="350" width="400"> </embed>
    somebody please help!
    Last edited by cram1nblaze; 01-17-2007 at 10:29 AM.

  3. #3
    Join Date
    Jan 2007

  4. #4
    Join Date
    Jan 2007

    Cool not sure if this will help, but...

    Had some problems myself with running mpg file in FF with IE running fine. My research found that FF seems to like running these babies using javascript rather than embedding in html. I used the the code below to get it running in both browsers. Haven't played much with the size but you might want to try putting your code into javascript using the format below. If that doesn't work, you could try tweaking the code below with the size you need.

    The following code (in independent js file) works in MSIE and Mozilla/Firefox using a popup:

    from html launching popup:
    inside <head> tag--
    <script language="JavaScript" type="text/javascript" src="js/yourJSFileName.js"></script>

    inside <body> tag--
    <a href="#" onclick="window.focus()">View Movie Clip</a>

    from popup html:
    <script language="JavaScript" type="text/javascript">insertMovie();</script>

    code in yourJSFileName.js file:
    function focus(){
    window.open("sdMovie1Popup.html", "popupFields", "toolbar=0, location=0, status=0, menubar=0, scrollbars=0, resizable=1, width=610, height=430");

    function insertMovie(){
    document.write('<object width="585" height="385" border="2px" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" align="middle">\n');
    document.write('<param name="src" value="videoName.mpg" />\n');
    document.write('<param name="controller" value="true" />\n');
    document.write('<param name="autoplay" value="true" />\n');
    document.write('<embed src="videoName" width="585" height="385" controller="true" pluginspage="http://www.apple.com/quicktime/download/" align="middle" autoplay="true" bgcolor="black">\n');

    From what I understand the duplication of some options is to cover older browsers.

    Hope this helps!

  5. #5
    Join Date
    Jun 2003
    Harrisonburg, USA

    window.focus() and Size

    Unfortunately, using JavaScript doesn't fix the problem in Firefox in which the video does not resize to the player. I'm also trying to find the solution to that problem.

    And window.focus() brings the current window to the front. The function should be named something else, such as focusVideo.

    The duplication of some options is for cross-browser compatibility. I believe Firefox uses the embed while IE uses the object.
    For original Christian music, chat, online church, counseling, and webmaster resources, visit:

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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