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

    Function getLicenseServerUrlFromContentProtection

    • Beta

      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 null | string

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

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