VideoFrame: displayHeight プロパティ

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.

displayHeightVideoFrame インターフェイスのプロパティで、アスペクト比の調整後の VideoFrame の高さを返します。

整数です。

次の例は displayHeight をコンソールに出力します。

js
console.log(VideoFrame.displayHeight);

仕様書

Specification
WebCodecs
# dom-videoframe-displayheight

ブラウザーの互換性