Constructor
new Pssh(psshBoxnon-null)
Parse a PSSH box and extract the system IDs.
Parameters:
| Name | Type | Description | 
|---|---|---|
| psshBox | Uint8Array | 
- Source:
Members
data :Array<!Uint8Array>
    Array with the pssh boxes found.
    Type:
- Array<!Uint8Array>
- Source:
Methods
createPssh(datanon-null, systemIdnon-null, keyIdsnon-null, version) → {Uint8Array}
    Creates a pssh blob from the given system ID, data, keyIds and version.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| data | Uint8Array | |
| systemId | Uint8Array | |
| keyIds | Set<string> | |
| version | number | 
- Source:
Returns:
- Type
- Uint8Array
getPsshData(psshnon-null) → {Uint8Array}
    Returns just the data portion of a single PSSH
    Parameters:
| Name | Type | Description | 
|---|---|---|
| pssh | Uint8Array | 
- Source:
Returns:
- Type
- Uint8Array
normaliseInitData(initDatanon-null) → {Uint8Array}
    Normalise the initData array. This is to apply browser specific
workarounds, e.g. removing duplicates which appears to occur
intermittently when the native msneedkey event fires (i.e. event.initData
contains dupes).
    Parameters:
| Name | Type | Description | 
|---|---|---|
| initData | Uint8Array | 
- Source:
Returns:
- Type
- Uint8Array