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

EventTarget

EventTarget: { constructor: any; prototype: EventTarget }

Type declaration

Readonly closed

closed: Promise<void>

Readonly expiration

expiration: number

Readonly keyStatuses

keyStatuses: MediaKeyStatusMap

onkeystatuseschange

onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null

onmessage

onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null

Readonly sessionId

sessionId: string

Methods

addEventListener

close

  • Returns Promise<void>

dispatchEvent

  • 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

  • Parameters

    Returns Promise<void>

load

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

    • sessionId: string

    Returns Promise<boolean>

remove

  • Returns Promise<void>

removeEventListener

update

  • Parameters

    Returns Promise<void>

Generated using TypeDoc