AudioEncoder: phương thức reset()
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 reset() của giao diện AudioEncoder đặt lại toàn bộ trạng thái, bao gồm cấu hình, các thông điệp điều khiển trong hàng đợi thông điệp điều khiển, và toàn bộ callback đang chờ.
Cú pháp
js
reset()
Tham số
Không có.
Giá trị trả về
Không có (undefined).
Ví dụ
Ví dụ sau đặt lại AudioEncoder.
js
AudioEncoder.reset();
Thông số kỹ thuật
| Specification |
|---|
| WebCodecs> # dom-audioencoder-reset> |