load()
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.
该MediaKeySession.load()
方法返回一个Promise
,它在加载指定的会话对象的数据后解析为一个布尔值。
句法
mediaKeySession .load(sessionId).then(function(booleanValue){...});
参数
- sessionId
-
由当前媒体对象及其相关键或许可证的内容解析模块生成的唯一字符串。
返回值
一个Promise
解析为一个布尔值,指示加载是成功还是失败。
规范
Specification |
---|
Encrypted Media Extensions # dom-mediakeysession-load |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
load |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.