Parse a standard common encryption PSSH which contains a simple base64-encoding of the init data
The ContentProtection element that may contain PSSH data.
The BASE64 reference.
init data as an ArrayBuffer, or null if not found.
const expected = base64Decode(cpData.pssh)const result = parseInitDataFromContentProtection(cpData, BASE64)strictEqual(result?.byteLength, expected.byteLength) Copy
const expected = base64Decode(cpData.pssh)const result = parseInitDataFromContentProtection(cpData, BASE64)strictEqual(result?.byteLength, expected.byteLength)
Parse a standard common encryption PSSH which contains a simple base64-encoding of the init data