VideoFrame: codedWidth 屬性
注意:此功能在 專用 Web Workers 中可用。
VideoFrame 介面的 codedWidth 屬性返回 VideoFrame 的寬度(以畫素為單位),其中可能包括不可見的填充,並且是在考慮潛在的比例調整之前的值。
值
一個整數。
示例
以下示例將 codedWidth 列印到控制檯。
js
console.log(VideoFrame.codedWidth);
規範
| 規範 |
|---|
| WebCodecs # dom-videoframe-codedwidth |
瀏覽器相容性
載入中…