Function: parsePsshList()
Call Signature
function parsePsshList(data): Record<string, ArrayBufferLike>;Defined in: cenc/parsePsshList.ts:17
Parses a list of PSSH boxes into keysystem-specific PSSH data.
Parameters
data
ArrayBufferLike
The concatenated list of PSSH boxes as provided by the CDM as initialization data when CommonEncryption content is detected
Returns
Record<string, ArrayBufferLike>
An object that has a property named according to each of the detected key system UUIDs (e.g. 00000000-0000-0000-0000-0000000000) and a ArrayBuffer (the entire PSSH box) as the property value
Example
const initData = new Uint8Array(samplePsshBox).buffer
const result = parsePsshList(initData)Call Signature
function parsePsshList(data): Record<string, Uint8Array>;Defined in: cenc/parsePsshList.ts:28
Parses a list of PSSH boxes into keysystem-specific PSSH data.
Parameters
data
The concatenated list of PSSH boxes as a Uint8Array.
Returns
Record<string, Uint8Array>
An object that has a property named according to each of the detected key system UUIDs and a Uint8Array (the entire PSSH box) as the property value