Skip to content

Function: getPsshData() ​

ts
function getPsshData(pssh): ArrayBufferLike;

Defined in: cenc/getPsshData.ts:12

Returns the data portion of a single PSSH box.

Parameters ​

pssh ​

ArrayBufferLike

The PSSH ArrayBuffer.

Returns ​

ArrayBufferLike

The data portion of the PSSH.

Example ​

ts
const psshBuffer = new Uint8Array(samplePsshBox).buffer
const result = getPsshData(psshBuffer)

A Streaming Video Technology Alliance project.