Documentation
    Preparing search index...

    Function getId

    • Beta

      Extracts the content ID from the license server URL or InitData.

      Parameters

      • licenseServerUrl: string

        The license server URL

      • initData: ArrayBuffer

        The initialization data (PSSH box)

      • queryParam: string = 'ContentId'

        The query parameter key to extract (default: 'ContentId')

      Returns string

      The extracted content ID as a string or null if not found

      {@includeCode ../../test/fairplay/getId.test.ts#example}