as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

MediaKeysRequirement

MediaKeysRequirement: "required" | "optional" | "not-allowed"

required:

 When used in a call to requestMediaKeySystemAccess(),
     the returned object must support this feature.
  When returned by a MediaKeySystemAccess object,
 CDM instances created by the object may use this feature.

optional:

 When used in a call to requestMediaKeySystemAccess(),
     the returned object may support and use this feature.
 When returned by a MediaKeySystemAccess object,
     this value cannot and must not be present in such an object.

not-allowed:

 When used in a call to requestMediaKeySystemAccess(),
     the returned object must function without using this feature and must not use it at any time.
 When returned by a MediaKeySystemAccess object
     CDM instances created by the object must not use this feature.

For more information, see https://www.w3.org/TR/encrypted-media/#dom-mediakeysrequirement.


Last updated: Oct 02, 2025