MediaKeySystemAccess

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.

Giao diện MediaKeySystemAccess của Encrypted Media Extensions API cung cấp quyền truy cập vào hệ thống Key Media. Giao diện này cũng cấp phương thức tạo MediaKeys.

Thuộc tính phiên bản

MediaKeySystemAccess.keySystem Read only

Trả về chuỗi xác định hệ thống key.

Phương thức phiên bản

MediaKeySystemAccess.createMediaKeys()

Trả về Promise thực hiện với đối tượng MediaKeys mới.

MediaKeySystemAccess.getConfiguration()

Trả về một đối tượng MediaKeySystemConfiguration với cấu hình hệ thống key media được hỗ trợ.

Thông số kỹ thuật

Specification
Encrypted Media Extensions
# mediakeysystemaccess-interface

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