Amazon Vinyl
    Preparing search index...

    Interface CommonMediaKeySession

    This provides a common interface for MediaKeySession EME implementations.

    interface CommonMediaKeySession {
        initData: EncryptedInitData;
        initDataType: string;
        mimeType: string;
        get disposed(): boolean;
        dispose(): void;
        hasAnyListeners(): boolean;
        hasListeners(type: keyof CommonMediaKeySessionEventMap): boolean;
        on<K extends keyof CommonMediaKeySessionEventMap>(
            type: K,
            handler: EventHandler<CommonMediaKeySessionEventMap[K]>,
            options?: SignalOptions,
        ): Unsubscribe;
        update(key: ArrayBuffer): Promise<void>;
    }

    Hierarchy (View Summary)

    Implemented by

    Index
    initDataType: string
    mimeType: string
    • Closes the session, and removes session handling and event listeners, freeing this session handler for GC.

      Note: The audio source should be cleared first.

      Returns void