interface dom.MediaKeySession
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.19/lib/index.ts";
const { MediaKeySession } = dom;
This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM).
Properties
readonly
keyStatuses: MediaKeyStatusMaponkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null
onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null
Methods
generateRequest(initDataType: string, initData: BufferSource): Promise<void>
update(response: BufferSource): Promise<void>
addEventListener<K extends keyof MediaKeySessionEventMap>(): void
type: K,
listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof MediaKeySessionEventMap>(): void
type: K,
listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any,
options?: boolean | EventListenerOptions,