as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

VideoProps

Properties

height?

optional height: number

For additional information, see https://html.spec.whatwg.org/multipage/embedded-content-other.html#dom-dim-height.


scalingmode?

optional scalingmode: "fill" | "none" | "fit" | "strech"

Brief

configure the scaling mode for rendered video. scalingmode suppprts following. 'none' : No scaling. It preserves the input size. 'fit' : Scales buffer to match window size while preserving the aspect ratio & center position. 'strech': Scales buffer to fit in window, initially without cropping. Scaling up beyond the bounds of the window will stretch the dst rect and excess is cropped down to window bounds. Aspect ratio and center pos are maintained 'fill': Scales buffer to fill the entire window, preserving its aspect ratio and hiding any overflow on the top/bottom/left/right. default: 'strech'


showCaptions?

optional showCaptions: boolean

Brief

show captions


width?

optional width: number

For additional information, see https://html.spec.whatwg.org/multipage/embedded-content-other.html#dom-dim-width.


Last updated: Oct 02, 2025