VideoFrame: close() メソッド
Baseline 2024Newly 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 |