AudioDecoder: thuộc tính state
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.
Thuộc tính chỉ đọc state của giao diện AudioDecoder trả về trạng thái hiện tại của codec nền tảng.
Giá trị
Một chuỗi chứa một trong các giá trị sau:
"unconfigured"-
Codec chưa được cấu hình để giải mã.
"configured"-
Codec có cấu hình hợp lệ và đã sẵn sàng.
"closed"-
Codec không còn dùng được nữa và tài nguyên hệ thống đã được giải phóng.
Ví dụ
Ví dụ sau in trạng thái của AudioDecoder ra bảng điều khiển.
js
console.log(AudioDecoder.state);
Thông số kỹ thuật
| Specification |
|---|
| WebCodecs> # dom-audiodecoder-state> |