MediaKeySystemAccess

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("Encrypted Media Extensions")}}{{SecureContext_Header}}

The **MediaKeySystemAccess** interface of the Encrypted Media Extensions API provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the {{domxref("Navigator.requestMediaKeySystemAccess","Navigator.requestMediaKeySystemAccess()")}} method.

Instance properties

  • {{domxref("MediaKeySystemAccess.keySystem")}} {{ReadOnlyInline}}
  • : Returns a string identifying the key system being used.

Instance methods

  • {{domxref("MediaKeySystemAccess.createMediaKeys()")}}
  • : Returns a {{jsxref('Promise')}} that resolves to a new {{domxref("MediaKeys")}} object.
  • {{domxref("MediaKeySystemAccess.getConfiguration()")}}
  • : Returns an object with the supported combination of configuration options.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}