resizeVideo()
- Print
resizeVideo()
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback
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:
parameter | description | data type | required? |
---|---|---|---|
x | x-coordinate of upper-left corner of resized video (default = 0) | Number | Yes |
y | y-coordinate of upper-left corner of resized video (default = 0) | Number | Yes |
width | width of resized video (default is 1280) | Number | Yes |
height | height of resized video (default is 720) | Number | Yes |
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?