as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持

VideoProps

VideoProps

属性

height?

optional height: number

有关更多信息,请参阅https://html.spec.whatwg.org/multipage/embedded-content-other.html#dom-dim-height。


scalingmode?

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

简述

为渲染的视频配置缩放模式。缩放模式支持如下所示项。“none”: 不缩放。它保留输入大小。“fit”: 缩放缓冲区以匹配窗口大小,同时保持宽高比和中心位置。“strech”: 缩放缓冲区以适应窗口,最初不进行裁剪。向上扩展到窗口边界之外将拉伸dst rect,多余部分将裁剪到窗口边界。宽高比和中心位置保持 “fill”: 缩放缓冲区以填充整个窗口,保持其宽高比并在顶部/底部/左侧/右侧隐藏任何溢出部分。默认值:“strech”


showCaptions?

optional showCaptions: boolean

简述

显示字幕


width?

optional width: number

有关更多信息,请参阅https://html.spec.whatwg.org/multipage/embedded-content-other.html#dom-dim-width。


Last updated: 2025年10月2日