VideoFrame: displayWidth プロパティ
Baseline
2024
Newly available
Since September 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
displayWidth は VideoFrame インターフェイスのプロパティで、アスペクト比の調整後の VideoFrame の幅を返します。
値
整数です。
例
次の例は displayWidth をコンソールに出力されます。
js
console.log(VideoFrame.displayWidth);
仕様書
| Specification |
|---|
| WebCodecs> # dom-videoframe-displaywidth> |
ブラウザーの互換性
Loading…