@svta/common-media-library
Version:
A common library for media playback in JavaScript
16 lines • 733 B
TypeScript
import type { ContentProtection } from '../common/ContentProtection.js';
/**
* Extracts a license server URL from an array of ContentProtection elements.
*
* @param contentProtectionElements - Array of ContentProtection nodes from the manifest.
* @param schemeIdUri - schemeIdUri we are searching for.
* @returns The license server URL, and if not found then null.
*
* @group DRM
* @beta
*
* @example
* {@includeCode ../../../test/drm/cenc/getLicenseServerUrlFromContentProtection.test.ts#example}
*/
export declare function getLicenseServerUrlFromContentProtection(contentProtectionElements: ContentProtection[], schemeIdUri: string): string | null;
//# sourceMappingURL=getLicenseServerUrlFromContentProtection.d.ts.map