@svta/common-media-library
    Preparing search index...

    Function getPSSHData

    • Beta

      Returns the data portion of a single PSSH box.

      Parameters

      • pssh: ArrayBuffer

        The PSSH ArrayBuffer.

      Returns ArrayBuffer

      The data portion of the PSSH.

      const psshBuffer = new Uint8Array(samplePsshBox).buffer;
      const result = getPSSHData(psshBuffer);