Encrypted media extensions
Widely available since 2021-09-25
The mediaKeys
property of HTMLMediaElement
and the navigator.requestMediaKeySystemAccess()
method control the playback of content subject to digital rights management. Also known as EME.
Learning resources on MDN
- HTMLMediaElement: encrypted event
- HTMLMediaElement: mediaKeys property
- HTMLMediaElement: setMediaKeys() method
- HTMLMediaElement: waitingforkey event
- MediaEncryptedEvent
- MediaEncryptedEvent: MediaEncryptedEvent() constructor
- MediaEncryptedEvent: initData property
- MediaEncryptedEvent: initDataType property
- MediaKeyMessageEvent
- MediaKeyMessageEvent: MediaKeyMessageEvent() constructor
- MediaKeyMessageEvent: message property
- MediaKeyMessageEvent: messageType property
- MediaKeySession
- MediaKeySession: close() method
- MediaKeySession: closed property
- MediaKeySession: expiration property
- MediaKeySession: generateRequest() method
- MediaKeySession: keyStatuses property
- MediaKeySession: keystatuseschange event
- MediaKeySession: load() method
- MediaKeySession: message event
- MediaKeySession: remove() method
- MediaKeySession: sessionId property
- MediaKeySession: update() method
- MediaKeyStatusMap
- MediaKeyStatusMap: entries() method
- MediaKeyStatusMap: forEach() method
- MediaKeyStatusMap: get() method
- MediaKeyStatusMap: has() method
- MediaKeyStatusMap: keys() method
- MediaKeyStatusMap: size property
- MediaKeyStatusMap: values() method
- MediaKeySystemAccess
- MediaKeySystemAccess: createMediaKeys() method
- MediaKeySystemAccess: getConfiguration() method
- MediaKeySystemAccess: keySystem property
- MediaKeys
- MediaKeys: createSession() method
- MediaKeys: getStatusForPolicy() method
- MediaKeys: setServerCertificate() method
- Encrypted Media Extensions API
- Permissions-Policy: encrypted-media
Browser support (view on caniuse.com)
- Chrome 42 Released on 2015-04-14
- Chrome Android 42 Released on 2015-04-15
- Edge 13 Released on 2015-11-12
- Firefox 38 Released on 2015-05-12
- Firefox for Android 38 Released on 2015-05-12
- Safari 12.1 Released on 2019-03-25
- Safari on iOS 12.2 Released on 2019-03-25
Specifications
- Encrypted Media Extensions, from Media Working Group (W3C).