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 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.
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/flush