VideoFrame: close() メソッド

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.

close()VideoFrame インターフェイスのメソッドで、すべての状態をクリアし、メディアリソースへの参照を解放します。

構文

js
close()

引数

なし。

返値

未定義。

次の例では VideoFrame オブジェクトが閉じられます。

js
VideoFrame.close();

仕様書

Specification
WebCodecs
# dom-videoframe-close

ブラウザーの互換性