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