Announcement

Collapse
No announcement yet.

Problem getting full screen video to keep aspect

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HobbsyJr
    replied
    Also, all configuration should be set before changing to full screen to ensure the user doesnt see any messy changes.
    Try setting the properties before you set full screen.

    E.g
    Code:
    Video.SetProperties("Video1", {ScalingMode=1});
    Video.SetFullScreen("Video1", true);

    Leave a comment:


  • HobbsyJr
    replied
    I'm not sure what you mean.

    So you have put the code on the "On Click" event of a paragraph object?
    I have tried the same and am not experiencing any problems...

    If you double click on the video object and go to Object Properties you can set the scaling mode before run-time.
    Then you just have the "text field" call Video.SetFullScreen

    Leave a comment:


  • JeffD
    replied
    Thanks for reply HobbsyJr

    Below is the only code associated to the text field
    It plays full screen (but not 16x9 - as per video dimensions) ok if I leave out 2nd line of script below. But as it is below when I click on the text I no longer get error but it does not go full screen - stays as was.


    Video.SetFullScreen("Video1", true);
    Video.SetProperties("Video1", {ScalingMode=1});

    Leave a comment:


  • HobbsyJr
    replied
    I think showing us an example of your code or an APZ might help here?

    In your last attempt:

    Video.SetProperties("Video1", ScalingMode '1');

    You get the error message because your syntax is wrong. When calling SetProperties the second argument must be a table value.

    You can feed an entire table of values to change like this:

    Code:
    tVideoProps = {
    VideoFile="Autoplay\\Videos\\file.wma", 
    ScalingMode=1, 
    AutoStart=true
    };
    
    Video.SetProperties("Video1", tVideoProps);
    or you can feed a single table value like this:

    Code:
    Video.SetProperties("Video1", {ScalingMode=1});
    Hope this helps

    Leave a comment:


  • JeffD
    started a topic Problem getting full screen video to keep aspect

    Problem getting full screen video to keep aspect

    I have a video that autoplays when enter on page.
    So far so good.

    Beneath the video screen I have a text field which displays the video full screen but fills entire screen and does not keep the 16x9 aspect of the widescreen video.

    On this text field I have used code:

    Video.SetFullScreen("Video1", true);

    and tried I think every variation poss using

    Video.SetFullScreen("Video1", true);
    Video.SetProperties("Video1", ScalingMode '1');

    I get error messages (like this)



    Can anyone help pls?

    thanks
Working...
X
😀
🥰
🤢
😎
😡
👍
👎