How to automatically let the video getting scaled when the browser changes size

Hi,
I'm using a f4v file with dimension 1200x720 and I might upload a 1920x1080 version.
You can see it at work on www.etmotionpictures.com
I want to the movie to automatically (down)scale in the browser.
So when I resize the browserwindow and refresh the page, I thought the movie would be resized to the new dimension of the browser-window but it didn't do it.
Maybe I misunderstood what scalemode=letterbox is doing.
By the way I used to generate the code and then paste it in a html file.
Here is the code:
I just realized it might have something to do with the fact that the width and height are added in the parameter and at the beginning when the object is declared. Do I need to change that in order for the video to automatically scale.
Thanks for any help.
I really appreciate it!!!
Regards,
Gosa
ps: sorry for my english but I'm not a native english speaker. thanks for understanding.

Hi,
Thanks for helping me on the right track.
I used swffit to accomplish what I wanted.
Here is the link: http://swffit.millermedeiros.com
Here is the code I used for anyone who want to do the same thing:
<script type="text/javascript" src="swfobject.js"></script>
          <script type="text/javascript" src="swffit.js"></script>
          <script type="text/javascript">
               /* swfobject.embedSWF("example.swf", "my_flash", "550", "400", "8.0.0"); */
               var flashvars = {};
               var params = {};
               params.bgcolor = "#000000";
               params.menu = "false";
               params.quality = "high";
               params.scale = "no_scale";
               params.bgcolor = "#FFFFFF";
               params.allowFullScreen = "true";
               params.AllowScriptAccess = "always";
               /* params.movie ="http://osmf.org/dev/1.5gm/StrobeMediaPlayback.swf"; */
               flashvars.src="http%3A%2F%2Fwww.etcmotionpictures.com%2Fetc.f4v";
               flashvars.playButtonOverlay="false";
               flashvars.controlBarMode="none";
               flashvars.controlBarAutoHide="false";
               flashvars.autoPlay="true";
               var attributes = {id: "my_flash"};
               swfobject.embedSWF("http://osmf.org/dev/1.5gm/StrobeMediaPlayback.swf", "my_flash", "800", "450", "8.0.0", "", flashvars, params, attributes);
               swffit.fit("my_flash"); //Since v2.3 swffit use the same size of swfobject by default (but you can set a new size if you want)
          </script>
And of course a div tag in the body:
<div id="my_flash"> </div>
Greets,
GoSa

Similar Messages

  • When I synch my ipod touch it only lets 50 videos get on ipod . I can't get the other videos on even though there's plenty of space available and it's set to synch all movies

    When I synch my ipod touch it only lets 50 videos get on ipod . I can't get the other videos on even though there's plenty of space available and it's set to synch all movies. What am I missing?

    i had the same problem. did a lot of research..my phone became unusuable. do you use the htc mail? if so that is your problem. there is a bug with it that it keeps eating your memory until you cannot use your phone. i had to do a hard reset. back to factory condition..not happy! but then went to the marketplace and got k-9 mail. that is now my default mail program. i have not had any issues since then. this is what i kept reading over and over for complaints on this phone. it is a major glitch and the only way, as of the time it happened to me, to fix it..

  • How can we let the program run in backgroud automatically?

    normally,we need to find peak off time run big program
    that read pooled table and slowly.
    How can we let the program run in backgroud automatically?
    BTW:before that pop a window just give runner a notice.

    Here is an example, try this one.
    REPORT ztest.
    PARAMETERS: p_vbeln LIKE vbak-vbeln,
                p_bkrun NO-DISPLAY.
    DATA: ls_vbak LIKE vbak.
    DATA: v_answer,
          v_jobcount LIKE tbtcjob-jobcount.
      IF p_bkrun IS INITIAL.
    *-- not background processing
        CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
             EXPORTING
                  textline1      = 'This may time out.'
                  textline2      = 'Do you want to run in background?'
                  titel          = 'Warning!!!'
                  cancel_display = space
             IMPORTING
                  answer         = v_answer.
        IF v_answer = 'J'.
    *-- run in the background
          CALL FUNCTION 'JOB_OPEN'
               EXPORTING
                    jobname          = 'ZTEST'
               IMPORTING
                    jobcount         = v_jobcount
               EXCEPTIONS
                    cant_create_job  = 1
                    invalid_job_data = 2
                    jobname_missing  = 3
                    OTHERS           = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            EXIT.
          ENDIF.
    *-- submit the program in the background
          SUBMIT ztest
            WITH p_bkrun = 'X'
            WITH p_vbeln = p_vbeln
            USER sy-uname
            VIA JOB 'ZTEST' NUMBER v_jobcount AND RETURN.
    *-- close the job
          CALL FUNCTION 'JOB_CLOSE'
               EXPORTING
                    jobcount             = v_jobcount
                    jobname              = 'ZTEST'
                    strtimmed            = 'X'
               EXCEPTIONS
                    cant_start_immediate = 1
                    invalid_startdate    = 2
                    jobname_missing      = 3
                    job_close_failed     = 4
                    job_nosteps          = 5
                    job_notex            = 6
                    lock_failed          = 7
                    OTHERS               = 8.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          EXIT.
        ELSE.
          CLEAR v_answer.
        ENDIF.
      ENDIF.
      CHECK v_answer IS INITIAL.
      SELECT SINGLE * FROM vbak
                      INTO ls_vbak
                     WHERE vbeln = p_vbeln.
      IF sy-subrc <> 0.
        WRITE:/ 'Invalid Order Id.'.
      ENDIF.
    END-OF-SELECTION.
      CHECK v_answer IS INITIAL.
      IF p_bkrun IS INITIAL.
        WRITE:/ 'Here is the result running the program in foreground.'.
      ELSE.
        WRITE:/ 'Here is the result running the program in background.'.
      ENDIF.
      WRITE:/ ls_vbak-vbeln,
              ls_vbak-vkorg.

  • How can I make US letter the default print size in PSE12

    How can I make US letter the default print size in PSE12

    Clips from JVC Everio camcorders have always had this problem with Premiere Elements (all versions). You need to select Interpret Footage.
    See this FAQ from PE version 2, step 3. Like I said it has been this way with all versions:
    http://www.adobeforums.com/webx/.3bc1265c
    You might be able to use this tool to change the header of your MOD files so they are seen as 16:9: http://www.videohelp.com/tools/DVDPatcher
    Or use this program (SDCopy) to download the video's from the cam, it will allow you to copy straight from the cam to your PC and auto renames and corrects the aspect ratio.
    http://zyvid.com/smf/index.php?action=dlattach;topic=280.0;id=153

  • How do I update the browser on the MacBookPro?  I would like to get newer version of Safari; however, if that is not possible, is there a version of anything that I can get for MAC OS 10.5.8?

    How do I update the browser on the MacBookPro?  I would like to get newer version of Safari; however, if that is not possible, is there a version of anything that I can get for MAC OS 10.5.8?

    Hi kwalker08865,
    It would appear that the most recent version of Safari that is compatible with OS X 10.5.8 would be Safari 5.0.6. If this would meet your needs, you can find more information and a download link on the following page:
    Safari 5.0.6 for Leopard
    Regards,
    - Brenden

  • How to automatically clear the compiler log

    Does anyone know how to automatically clear the compiler log window immediately prior to compilation? "Upon compilation" might be a better way to say it.
    I couldn't find any preference settings that would enable this functionality.
    I'm using SQL Developer version 2.1.0.63.73, which I believe is the lastest version.
    Edited by: user1983440 on Feb 11, 2010 1:21 PM

    An automatic clearing of the compiler log is not available. This would be a good enhancement request to add to the Exchange: http://htmldb.oracle.com/pls/otn/f?p=42626:16:3459578745962796
    Ashley

  • How to automatically create the custom migration scripts after recreating SSMA project?

    How to automatically create the custom data migration scripts after recreating SSMA project?
    There is number of tables ( big tables with BLOBS)  which I want to set up automatically to be migrated with custom migration scripts (replacing e.g. attribute named "FILE" with "TO_BLOB('') AS FILE" ).
    So the question is how to open MB file (I think that it should be standard db of some destktop RDBMS) ? 

    Hi Roman.Pokrovskij,
    According
    to your description, we can use SSMA tool to migrate data from one database (including Access, Oracle and so on) to SQL Server via GUI or the scripts. There is an example about migrating Access database to SQL Server via the
    custom migration scripts, you can review refer to them.
    <?xml version="1.0" encoding="utf-8"?>
    <ssma-script-file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Microsoft SQL Server Migration Assistant for Access\Schemas\A2SSConsoleScriptSchema.xsd">
    <config>
    <output-providers>
    <output-window suppress-messages="false"
    destination="stdout"/>
    <upgrade-project action="yes"/>
    <data-migration-connection source-use-last-used="true"
    target-server="target_1"/>
    <progress-reporting enable="false"
    report-messages="false"
    report-progress="off"/>
    <object-overwrite action="skip" />
    </output-providers>
    </config>
    <servers>
    <!-- Server definition for Sql server target server-->
    <sql-server name="target_1">
    <sql-server-authentication>
    <server value="$SQLServerName$"/>
    <database value="$SQLServerDb$"/>
    <user-id value="$SQLServerUsrID$"/>
    <password value="$SQLServerPassword$"/>
    <encrypt value="true"/>
    <trust-server-certificate value="true"/>
    </sql-server-authentication>
    </sql-server>
    </servers>
    <script-commands>
    <create-new-project project-folder="$project_folder$ "
    project-name="$project_name$"
    overwrite-if-exists="true"/>
    <connect-target-database server="target_1"/>
    <load-access-database database-file="$AccessDbFolder$\$AccessDatabaseFile$"/>---
    <!--Schema Mapping-->
    <map-schema source-schema="$AccessDatabase$" sql-server-schema="$SQLServerDb$.dbo" />
    <!-- Convert schema -->
    <!-- Example: Convert entire Schema (with all attributes)-->
    <convert-schema object-name="$AccessDatabase$"
    object-type="Databases"
    conversion-report-overwrite="true"
    verbose="true"
    report-errors="true" />
    <!-- Synchronize target -->
    <!-- Example: Synchronize target entire Database with all attributes-->
    <synchronize-target object-name="$SQLServerDb$.dbo"
    on-error="fail-script" />
    <!-- Data Migration-->
    <!--Example: Data Migration of all tables in the schema (with all attributes)-->
    <migrate-data object-name="$AccessDatabase$.Tables"
    object-type="category"
    report-errors="true"
    verbose="true"/>
    </script-commands>
    </ssma-script-file>
    There is a similar scripts about migrating Oracle database to SQL Server, you can use powershell script to automatically run the console for scripts/variable files, saved in the specified folder. For more information, review the following
    article.
    http://blogs.msdn.com/b/ssma/archive/2010/09/09/performing-database-migration-assessment-using-ssma-console-application.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to automatically print the layers of a drawing in separate sheets in one go?

    How to automatically print the layers of a drawing in separate sheets in one go?
    Suppose that my pdf file contains 15 layers and wanted to print each one of these layers separately in separate sheet, then how this sort of work might be done automatically?
    Thank you for the help,
    Best
    Jamal

    No, unfortunately, when you're in Calculation and click "pick"  it closes the previous window. But I can tell you!
    In the Amount field I chose Calculate>Value is the PRODUCT of the following field, and I picked Hour1, which is the field where I entered the formula you provided HOURS1 * 10. I just checked the formula and saw that it was missing a space, and inserted it. So now there is a calculation appearing in the amount column, but it's equal to what I am entering in the Rental Fee Column, not 10x the amount. See illustration. I checked the calculation order (thank you for that) and fixed the sequence.
    Also, when I go to select a number from from drop down box in the Rental Fee column, it now gives me an error message before inserting the number. The error message reads "Must be greater than or equal to 0 or less than or equal to 5."  I have no idea why, when the choices in the column are limited to 0, 1, 2, and 3. Is there a way to send you the actual form through this forum - I think I can upload it to the website and send you a link, correct? Thanks for your help, George.

  • How to automatic post the profit OR loss to short term Capital / long term

    Hi,
    How to automatic post the profit OR loss to Short term Capital gain / Long term capital gain on posting of Sales transaction ?
    Incase the inventory item is less than one year older then the difference should be posted to the G/L of Short term Capital gain, where as if the item is more than one year older then the difference should be posted to the G/L of Long term Capital gain
    Thanks in advance
    Samir Gandhi

    I don't think any logic can be used to reach your goal.  How B1 system should post in such a fussy conditions?
    In case the inventory item is less than one year older then the difference should be posted to the G/L of Short term Capital gain
    How can you identify these items?  An inventory is a moving concept like a river. It come and goes with all different ways even as to value and revalue them.
    Please follow the common sense to face reality.
    Thanks,
    Gordon

  • How do I keep the same file size, going from tiff to jpg?

    Going from tiff to jpg, how do I keep the same file size? Seems like I am not able to save the jpg´s in 16-bits... Thanks!

    file size? you mean dimensions or file bytes ?
    Jpg is compressed so it won't be the same
    Tiff is losless / lossy format to get the better quality
    as for 16bit jpg the format doesnt support it

  • How do you keep the browser heading from showing?

    How do you keep the browser heading from showing in the
    output? I did this once but can't figure out how!
    Thanks in advance,
    Rosie

    You asked...
    quote:
    Is there a way to shrink the application you're capturing so it
    fits within a given capture window rather than requiring scrolling,
    or would I have to go back to the application developers for that?
    (I realize that would shrink the size of everything on the screen,
    but in some cases, that would be worth it to be able to show a
    window without scrolling.
    If, by "shrink" ... you mean by using the AppSizer, the
    answer is "not really". You can configure AppSizer to a defined
    size, then with the mouse pointer double-arrowed on the "edge" of a
    window, right-click and your window-size selections will appear in
    the AppSizer "list" (that you set up) and can be selected there.
    But there is no re-scaling of the window contents, if that is
    what you mean, so the smaller window may now require scrolling.
    But keep in mind that if you use the recording option for
    "Software Simulation" > "Custom Size", you can then snap the
    application window to that size...

  • Browser window flashes for a fraction of a second (too quickly) to input required information.  How do I stop the browser page to allow input?

    VPN requires input of user id and password on authentication browser page.  However, the browser page flashes for an instance (less than one second) and then returns an error page "failed to authenticate".  It is failing to authenticate because I am unable to input the required username / password on the authentication page.  Is there a setting I need to modify to allow the authentication page to wait for input?
    JC

    >>What am I doing wrong?
    Not giving us a link to the uploaded page so we can see the
    page, how it
    behaves and the actual code.
    Until we see that you are unlikely to get a definitive
    answer. The problem
    is unlikely as you state it because text itself is never
    dependant on the
    browser viewport size.
    Walt
    "Fun Leprechaun" <[email protected]> wrote
    in message
    news:g9f7rq$ie4$[email protected]..
    > Hello there,
    >
    > I am using a DW CS3 template that has a sidebar div and
    a main content
    > div -
    > the text in the main content div keeps resizing to the
    size of the browser
    > window - I don't want the text to resize if I make the
    browser window
    > smaller -
    > I want it to remain the same. I am trying to float the
    text right and
    > input a
    > width but this is not working for me. What am I doing
    wrong?
    >
    > HELP!
    >
    > Many thanks!
    >

  • I am exporting a Pages document to Epub and Pages is compressing my jpg images.  How do I keep the original jpg size during the export to epub process?

    I am exporting a Pages document to Epub and Pages is compressing my jpg images (I think to 72 dpi from original 600 dpi). 
    How do I keep the original jpg size during the export to epub process?

    We are still trying learn how to use Pages to build ePub documents with high resolution graphics that will expand clearly when they are tapped. Very large screen shots are my example here.

  • How do I clear the browsing history on my iPad?

    How do I clear the browsing history on my iPad 2?

    Settings > Safari > Clear History (and Clear Cookies And Data if you want to clear them as well).
    If you also want to clear your search history (i.e. the words/phrases that you've typed in the search box) then you may also need to close Safari completely : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.

  • How can I determine the number and sizes of redologs?

    Dear all,
    How can I determine the number and sizes of redologs are sufficient to allow redo log switching while hot backup is in progress?
    Please advice,
    Amy

    Two questions here - what the OP put as the subject title and what was asked in the thread, which are different questions.
    I would interpret the question in the thread to mean "how to avoid hanging due to archiving waiting for a redo log group to become available." Alert log, wait events, and user complaints would be the source of information here.

Maybe you are looking for

  • When posting GI for Non valuated material in Delivery geting error (M8147)

    Hi Experts We have a problem that we are trying to send a material from one plant in one company code to another plant in another company code (Inter Company Stock Transfer Order). The material is of type Non Valuated (So it has no valuation class).

  • Stop yesterday's Word docs from re-opening

    Since my upgrade to Lion, whenever I open a Word document, all the Word documents I had open yesterday also re-open. The same happens with Excel. How do I stop this? Thanks,

  • Partner Determination Procedure-access sequence

    Dear Gurus, My requirement is support team determination when message is created.I maintained the  Rule 13200137 in PFAC_RESPO. In this below path in procedure SLFN0001 against partner function procedure of funcions SLFN0003 SUPPORT TEAM (CRM).IN THE

  • How to import/copy songs from DVD storage to iTunes Library

    My PB harddrive had a major failure resulting in total data loss. I have all my Itunes music copied to 5 DVDs (roughly 22g or 12 days of music). How do I get these back into my iTunes music library? I have tried: a) drag & drop copy from DVD (desktop

  • Timing appearance of PPT slideshow elements after importing to Captivate

    I know that in Captivate I can import PPT slides along with the animations (bullet points appearing one at a time, etc.), and that if these are timed in PPT, the timing can be preserved on the Captivate timeline after importing... However, do you hav