Back to Content

VideoFrame: close() method

files/en-us/web/api/videoframe/close/index.md

latest489 B
Original Source

{{APIRef("Web Codecs API")}}{{AvailableInWorkers("window_and_dedicated")}}

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

Syntax

js-nolint
close()

Parameters

None.

Return value

Undefined.

Examples

The following example shows the VideoFrame object being closed.

js
VideoFrame.close();

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}