Beta
Returns the PSSH box associated with the given key system from the concatenated list of PSSH boxes in the provided initData.
The desired key system
'cenc' initialization data. Concatenated list of PSSH boxes.
The PSSH box ArrayBuffer corresponding to the given key system, or null if not found.
const initData = new Uint8Array(samplePsshBox).buffer;const result = getPSSHForKeySystem(keySystem, initData); Copy
const initData = new Uint8Array(samplePsshBox).buffer;const result = getPSSHForKeySystem(keySystem, initData);
Returns the PSSH box associated with the given key system from the concatenated list of PSSH boxes in the provided initData.