• Beta

    Parses a list of PSSH boxes into keysystem-specific PSSH data.

    Parameters

    • data: undefined | null | ArrayBuffer

      The concatenated list of PSSH boxes as provided by the CDM as initialization data when CommonEncryption content is detected

    Returns Record<string, ArrayBuffer>

    An object that has a property named according to each of the detected key system UUIDs (e.g. 00000000-0000-0000-0000-0000000000) and a ArrayBuffer (the entire PSSH box) as the property value

    const initData = new Uint8Array(samplePsshBox).buffer;
    const result = parsePSSHList(initData);