flush
The flush() method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
The flush() method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
The flush() method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
The flush() method of the VideoEncoder interface forces all pending encodes to complete.