web api instance method
VideoFrame: clone() method
Available in workers
The clone() method of the VideoFrame interface creates a new VideoFrame object referencing the same media resource as the original.
Syntax
clone()
Parameters
None.
Return value
A new cloned VideoFrame object.
Exceptions
InvalidStateErrorDOMException- : Thrown if the
VideoFrameobject has been transferred.
- : Thrown if the
Examples
The following example clones a copy of VideoFrame as videoFrame2.
let videoFrame2 = VideoFrame.clone();
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.