VideoFrame.close()

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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

Specification
WebCodecs
# dom-videoframe-close

Browser compatibility

BCD tables only load in the browser