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

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 update() của giao diện MediaKeySession tải thông điệp và giấy phép vào CDM, rồi trả về một Promise.

Cú pháp

js
update(response)

Tham số

response

Một thực thể là ArrayBuffer, TypedArray, hoặc DataView.

Giá trị trả về

Một Promise phân giải thành undefined.

Thông số kỹ thuật

Thông số kỹ thuật
Encrypted Media Extensions
# dom-mediakeysession-update

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