VideoDecoder: 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 VideoDecoder đặt lại tất cả các trạng thái bao gồm cấu hình, thông điệp điều khiển trong hàng đợi và tất cả các 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 đây đặt lại VideoDecoder.
js
VideoDecoder.reset();
Thông số kỹ thuật
| Specification |
|---|
| WebCodecs> # dom-videodecoder-reset> |