这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
The Encrypted Media Extensions API provides interfaces for controlling the playback of content which is subject to a digital restrictions management scheme.
MediaKeyMessageEvent
Contains the content and related data when the content decryption module (CDM) generates a message for the session.
MediaKeys
HTMLMediaElement
can use for decryption of media data during playback.
MediaKeySession
Represents a context for message exchange with a content decryption module (CDM).
MediaKeyStatusMap
Is a read-only map of media key statuses by key IDs.
MediaKeySystemAccess
Provides access to a Key System for decryption and/or a content protection provider.
MediaKeySystemConfiguration
Provides configuration information about the media key system.
| 规范 | 状态 | 注释 |
|---|---|---|
| 加密媒体扩展 | 推荐 | 初始定义 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
requestMediaKeySystemAccess
|
Chrome
42
|
Edge 13 |
Firefox
Yes
|
IE ? |
Opera
29
|
Safari ? |
WebView Android
43
|
Chrome Android
42
|
Firefox Android
Yes
|
Opera Android
29
|
Safari iOS ? |
Samsung Internet Android
4.0
|
完整支持
兼容性未知
见实现注意事项。