@ceeblue/web-utils
    Preparing search index...

    Function getPsshForKeySystem

    • Beta

      Returns the PSSH box associated with the given key system from the concatenated list of PSSH boxes in the provided initData.

      Parameters

      • uuid: string

        The desired key system UUID

      • initData: ArrayBuffer

        'cenc' initialization data. Concatenated list of PSSH boxes.

      Returns ArrayBuffer | null

      The PSSH box ArrayBuffer corresponding to the given key system, or null if not found.

      {@includeCode ../../../test/drm/cenc/getPsshForKeySystem.test.ts#example}