AudioEncoder: phương thức close()

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 close() của giao diện AudioEncoder kết thúc toàn bộ công việc đang chờ và giải phóng tài nguyên hệ thống.

Cú pháp

js
close()

Tham số

Không có.

Giá trị trả về

Không có (undefined).

Ví dụ

Ví dụ sau đóng AudioEncoder.

js
AudioEncoder.close();

Thông số kỹ thuật

Specification
WebCodecs
# dom-audioencoder-close

Tương thích trình duyệt