VideoFrame: clone() メソッド
clone()
は VideoFrame
インターフェイスのメソッドで、原本と同じメディアリソースを参照する新しい VideoFrame
オブジェクトを作成します。
構文
js
clone()
引数
なし。
返値
新しく複製された VideoFrame
オブジェクトです。
例外
InvalidStateError
DOMException
-
VideoFrame
オブジェクトが移譲された場合に発生します。
例
次の例では、VideoFrame
のコピーを videoFrame2
として複製します。
js
let videoFrame2 = VideoFrame.clone();
仕様書
Specification |
---|
WebCodecs # dom-videoframe-clone |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
clone |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.