web api instance method
VideoDecoder: flush() method
Secure contextAvailable in workers
The flush() method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
Syntax
flush()
Parameters
None.
Return value
A Promise that resolves with undefined.
Exceptions
InvalidStateErrorDOMException- : Returned if the Promise is rejected because the
stateis notconfigured.
- : Returned if the Promise is rejected because the
Examples
The following example flushes the VideoDecoder.
VideoDecoder.flush();
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.