CML
    Preparing search index...

    Function getLicenseServerUrlFromContentProtection

    • Extracts a license server URL from an array of ContentProtection elements.

      Parameters

      • contentProtectionElements: ContentProtection[]

        Array of ContentProtection nodes from the manifest.

      • schemeIdUri: string

        schemeIdUri we are searching for.

      Returns string | null

      The license server URL, and if not found then null.

      it('should return license server URL', () => {
      const result = getLicenseServerUrlFromContentProtection(contentProtection, schemeIdUri)
      strictEqual(result, 'license-server-url')
      })