WebCodecs APIwindow_and_dedicated
The flush() method of the AudioEncoder 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- : Thrown if the Promise is rejected because the AudioEncoder.state is not
"configured".
- : Thrown if the Promise is rejected because the AudioEncoder.state is not
Examples
The following example flushes the AudioEncoder.
AudioEncoder.flush();
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
