Interface EncryptedEvent

Fired when the player encounters key system initialization data in the media data.

interface EncryptedEvent {
    currentTime: number;
    date: Date;
    initData: ArrayBuffer;
    initDataType: string;
    type: "encrypted";

Hierarchy (view full)

  • Event<"encrypted">
    • EncryptedEvent


currentTime: number

The player's current time.

date: Date

The creation date of the event.

initData: ArrayBuffer

The initialization data.

initDataType: string

The type of the initialization data.

type: "encrypted"

The type of the event.