@svta/common-media-library
Version:
A common library for media playback in JavaScript
16 lines • 590 B
TypeScript
/**
* Extracts the content ID from the license server URL or InitData.
*
* @param licenseServerUrl - The license server URL
* @param initData - The initialization data (PSSH box)
* @param queryParam - The query parameter key to extract (default: 'ContentId')
* @returns The extracted content ID as a string or null if not found
*
* @group DRM
* @beta
*
* @example
* {@includeCode ../../../test/drm/fairplay/getId.test.ts#example}
*/
export declare function getId(licenseServerUrl: string, initData: Uint16Array, queryParam?: string): string;
//# sourceMappingURL=getId.d.ts.map