VideoFrame: clone() メソッド
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.
clone() は VideoFrame インターフェイスのメソッドで、原本と同じメディアリソースを参照する新しい VideoFrame オブジェクトを作成します。
構文
js
clone()
引数
なし。
返値
新しく複製された VideoFrame オブジェクトです。
例外
InvalidStateErrorDOMException-
VideoFrameオブジェクトが移譲された場合に発生します。
例
次の例では、VideoFrame のコピーを videoFrame2 として複製します。
js
let videoFrame2 = VideoFrame.clone();
仕様書
| Specification |
|---|
| WebCodecs> # dom-videoframe-clone> |
ブラウザーの互換性
Loading…