MediaKeySession: sessionId property

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The MediaKeySession.sessionId is a read-only property that contains a unique string generated by the content decryption module (CDM) for the current media object and its associated keys or licenses.


A string.


Encrypted Media Extensions
# dom-mediakeysession-sessionid

Browser compatibility

BCD tables only load in the browser