VideoProps
属性
height?
optionalheight:number
有关更多信息,请参阅https://html.spec.whatwg.org/multipage/embedded-content-other.html#dom-dim-height。
scalingmode?
optionalscalingmode:"fill"|"none"|"fit"|"strech"
简述
为渲染的视频配置缩放模式。缩放模式支持如下所示项。“none”: 不缩放。它保留输入大小。“fit”: 缩放缓冲区以匹配窗口大小,同时保持宽高比和中心位置。“strech”: 缩放缓冲区以适应窗口,最初不进行裁剪。向上扩展到窗口边界之外将拉伸dst rect,多余部分将裁剪到窗口边界。宽高比和中心位置保持 “fill”: 缩放缓冲区以填充整个窗口,保持其宽高比并在顶部/底部/左侧/右侧隐藏任何溢出部分。默认值:“strech”
showCaptions?
optionalshowCaptions:boolean
简述
显示字幕
width?
optionalwidth:number
有关更多信息,请参阅https://html.spec.whatwg.org/multipage/embedded-content-other.html#dom-dim-width。
Last updated: 2025年10月2日

