Firefox Tomorrow

web api instance method

VideoFrame: clone() method

View on MDN ↗

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

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.