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

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2019.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Phương thức close() của giao diện MediaKeySession thông báo rằng phiên phương tiện hiện tại không còn cần thiết, và module giải mã nội dung nên giải phóng mọi tài nguyên liên quan đến đối tượng này và đóng nó. Sau đó, nó trả về một Promise.