MediaKeyStatusMap

这是 实验性技术
检查 浏览器兼容性表格 在生产中使用这之前。

MediaKeyStatusMap interface of the EncryptedMediaExtensions API is a read-only map of media key statuses by key IDs.

特性

MediaKeyStatusMap.size 只读
Returns the number of key/value pars in the status map.

方法

MediaKeyStatusMap.entries() 只读
返回新 Iterator object containing an array of [key, value] for each element in the status map, in insertion order.
MediaKeyStatusMap.forEach(callback[, argument]) 只读
调用 callback once for each key-value pair in the status map, in insertion order. If argument is present it will be passed to the callback.
MediaKeyStatusMap.get() 只读
Returns the value associated with the given key, or undefined if there is none.
MediaKeyStatusMap.has() 只读
Returns a boolean asserting whether a value has been associated with the given key.
MediaKeyStatusMap.keys() 只读
返回新 Iterator object containing keys for each element in the status map, in insertion order.
MediaKeyStatusMap.values() 只读
返回新 Iterator object containing values for each element in the status map, in insertion order.
MediaKeyStatusMap.[@@iterator]() 只读
返回新 Iterator object containing an array of [key, value] for each element in the status map, in insertion order.

规范

规范 状态 Comment
加密媒体扩展
The definition of 'MediaKeyStatusMap' in that specification.
Recommendation 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
MediaKeyStatusMap
Chrome 42 Edge ≤18 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
entries
Chrome 42 Edge 16 Firefox ? IE ? Opera 29 Safari ? WebView Android 43 Chrome Android 42 Firefox Android ? Opera Android 29 Safari iOS ? Samsung Internet Android 4.0
forEach
Chrome 42 Edge 13 Firefox ? IE ? Opera 29 Safari ? WebView Android 43 Chrome Android 42 Firefox Android ? Opera Android 29 Safari iOS ? Samsung Internet Android 4.0
get
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
has
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
iterator
Chrome 42 Edge ≤18 Firefox ? IE ? Opera 29 Safari ? WebView Android 43 Chrome Android 42 Firefox Android ? Opera Android 29 Safari iOS ? Samsung Internet Android 4.0
keys
Chrome 42 Edge 16 Firefox ? IE ? Opera 29 Safari ? WebView Android 43 Chrome Android 42 Firefox Android ? Opera Android 29 Safari iOS ? Samsung Internet Android 4.0
size
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
values
Chrome 42 Edge 16 Firefox ? IE ? Opera 29 Safari ? WebView Android 43 Chrome Android 42 Firefox Android ? Opera Android 29 Safari iOS ? Samsung Internet Android 4.0

图例

完整支持
完整支持
兼容性未知
兼容性未知
实验。期望将来行为有所改变。
实验。期望将来行为有所改变。