Skip to content

Function: getLicenseServerUrl() ​

ts
function getLicenseServerUrl(initData): string;

Defined in: fairplay/getLicenseServerUrl.ts:13

Retrieves the FairPlay license server URL from InitData.

Parameters ​

initData ​

Uint16Array

The initialization data (PSSH box)

Returns ​

string

The license server URL as a string

Example ​

ts
const initData = new Uint16Array([
	...new TextEncoder().encode('skd://common-media-library.com'),
])
strictEqual(getLicenseServerUrl(initData), 'https://common-media-library.com')

A Streaming Video Technology Alliance project.