VideoEncoder.flush()

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The flush() method of the VideoEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.

Syntax

VideoEncoder.flush()

Parameters

None.

Return Value

A Promise that resolves with undefined.

Exceptions

DOMException InvalidStateError

The Promise rejected because the state is not "configured".

Examples

The following example flushes the VideoEncoder.

VideoEncoder.flush();

Specifications

No specification found

No specification data found for api.VideoEncoder.flush.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

No compatibility data found for api.VideoEncoder.flush.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.