AudioEncoder: phương thức flush()
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Note: This feature is available in Dedicated Web Workers.
Phương thức flush() của giao diện AudioEncoder trả về một Promise được giải quyết khi toàn bộ thông điệp đang chờ trong hàng đợi đã hoàn tất.
Cú pháp
js
flush()
Tham số
Không có.
Giá trị trả về
Một Promise được giải quyết với giá trị undefined.
Ngoại lệ
InvalidStateErrorDOMException-
Được ném ra nếu Promise bị từ chối vì
statekhông phải là"configured".
Ví dụ
Ví dụ sau flush AudioEncoder.
js
AudioEncoder.flush();
Thông số kỹ thuật
| Specification |
|---|
| WebCodecs> # dom-audioencoder-flush> |