VideoFrame: clone()-Methode
Hinweis: Diese Funktion ist in Dedicated Web Workers verfügbar.
Die clone()
-Methode des VideoFrame
-Interfaces erstellt ein neues VideoFrame
-Objekt, das auf die gleiche Medienressource wie das Original verweist.
Syntax
js
clone()
Parameter
Keine.
Rückgabewert
Ein neues geklontes VideoFrame
-Objekt.
Ausnahmen
InvalidStateError
DOMException
-
Wird ausgelöst, wenn das
VideoFrame
-Objekt übertragen wurde.
Beispiele
Im folgenden Beispiel wird eine Kopie von VideoFrame
als videoFrame2
geklont.
js
let videoFrame2 = VideoFrame.clone();
Spezifikationen
Specification |
---|
WebCodecs # dom-videoframe-clone |
Browser-Kompatibilität
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.