resizeVideo()

    resizeVideo()


    Article summary

    resizeVideo()

    Change the dimensions and position of the background video. Note that the video itself will adjust with black letterbox if the dimensions of the video window would impact the aspect ratio of the video.

    Signature:

    $badger.resizeVideo(x,y,width,height)

    Parameters:

    parameterdescriptiondata typerequired?
    xx-coordinate of upper-left corner of resized video (default = 0)NumberYes
    yy-coordinate of upper-left corner of resized video (default = 0)NumberYes
    widthwidth of resized video (default is 1280)NumberYes
    heightheight of resized video (default is 720)NumberYes

    Return Values:

    None.

    Usage Example:

    When an X1 App calls the method below:

    $badger.resizeVideo(0, 0, 640, 360);
    

    the background video of the X1 App will resize to 640x360 and remain positioned in the upper left corner of the screen.


    Was this article helpful?

    What's Next