Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MediaKeySession

This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM).

Hierarchy

Index

Properties

closed: Promise<void>
expiration: number
keyStatuses: MediaKeyStatusMap
onkeystatuseschange: null | ((this: MediaKeySession, ev: Event) => any)
onmessage: null | ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any)
sessionId: string

Methods

  • close(): Promise<void>
  • Returns Promise<void>

  • dispatchEvent(event: Event): boolean
  • 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.

    Parameters

    Returns boolean

  • generateRequest(initDataType: string, initData: BufferSource): Promise<void>
  • Parameters

    Returns Promise<void>

  • load(sessionId: string): Promise<boolean>
  • Parameters

    • sessionId: string

    Returns Promise<boolean>

  • remove(): Promise<void>
  • Returns Promise<void>

  • Parameters

    Returns Promise<void>

Generated using TypeDoc