Beta
Extracts the content ID from the license server URL or InitData.
The license server URL
The initialization data (PSSH box)
The query parameter key to extract (default: 'ContentId')
The extracted content ID as a string or null if not found
{@includeCode ../../test/fairplay/getId.test.ts#example} Copy
{@includeCode ../../test/fairplay/getId.test.ts#example}
Extracts the content ID from the license server URL or InitData.