Firefox Tomorrow

web api instance method

VideoFrame: close() method

View on MDN ↗

Available in workers

The close() method of the VideoFrame interface clears all states and releases the reference to the media resource.

Syntax

close()

Parameters

None.

Return value

Undefined.

Examples

The following example shows the VideoFrame object being closed.

VideoFrame.close();

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.