VideoEncoder: close() method
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 VideoEncoder kết thúc tất cả 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 VideoEncoder.
js
VideoEncoder.close();
Thông số kỹ thuật
| Specification |
|---|
| WebCodecs> # dom-videoencoder-close> |