@ceeblue/web-utils
    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)

      • OptionalqueryParam: string

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

      Returns string

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

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