Interface MediaKeySession

This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). Available only in secure contexts.

MDN Reference

Hierarchy

Properties

expiration: number
keyStatuses: MediaKeyStatusMap
onkeystatuseschange: ((this, ev) => any)

Type declaration

onmessage: ((this, ev) => any)

Type declaration

sessionId: string

Methods

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    MDN Reference

    Parameters

    Returns boolean