AudioDecoder: 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 AudioDecoder đặt lại mọi 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à mọi 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 AudioDecoder.

js
AudioDecoder.reset();

Thông số kỹ thuật

Specification
WebCodecs
# dom-audiodecoder-reset

Khả năng tương thích trình duyệt