Constructor
new PlayReady()
A set of functions for parsing Microsoft Playready Objects.
- Source:
Members
PLAYREADY_RECORD_TYPES :number
Enum for PlayReady record types.
Type:
- number
Properties:
Name | Value | Type | Description |
---|---|---|---|
RIGHTS_MANAGEMENT |
1 | number | |
RESERVED |
2 | number | |
EMBEDDED_LICENSE |
3 | number |
- Source:
Methods
getLaurl_(xmlnon-null) → {string}
PlayReady Header format: https://goo.gl/dBzxNA
Parameters:
Name | Type | Description |
---|---|---|
xml |
shaka.extern.xml.Node |
- Source:
Returns:
- Type
- string
getLicenseUrl(elementnon-null) → {string}
Gets a PlayReady license URL from a PlayReady Header Object
Parameters:
Name | Type | Description |
---|---|---|
element |
shaka.extern.xml.Node |
- Source:
Returns:
- Type
- string
getPlayReadyHeaderObject_(elementnon-null) → {shaka.extern.xml.Node}
Gets a PlayReady Header Object
Parameters:
Name | Type | Description |
---|---|---|
element |
shaka.extern.xml.Node |
- Source:
Returns:
getPlayReadyKID(elementnon-null) → {string}
Gets a PlayReady KID from a protection element containing a
PlayReady Header Object
Parameters:
Name | Type | Description |
---|---|---|
element |
shaka.extern.xml.Node |
- Source:
Returns:
- Type
- string
parseMsPro_(data) → {Array.<shaka.drm.PlayReady.PlayReadyRecord>}
Parses a buffer for PlayReady Objects. The data
should contain a 32-bit integer indicating the length of
the PRO in bytes. Following that, a 16-bit integer for
the number of PlayReady Object Records in the PRO. Lastly,
a byte array of the PRO Records themselves.
PlayReady Object format: https://goo.gl/W8yAN4
Parameters:
Name | Type | Description |
---|---|---|
data |
BufferSource |
- Source:
Returns:
- Type
- Array.<shaka.drm.PlayReady.PlayReadyRecord>
parseMsProRecords_(viewnon-null, byteOffset) → {Array.<shaka.drm.PlayReady.PlayReadyRecord>}
Parses an Array buffer starting at byteOffset for PlayReady Object Records.
Each PRO Record is preceded by its PlayReady Record type and length in
bytes.
PlayReady Object Record format: https://goo.gl/FTcu46
Parameters:
Name | Type | Description |
---|---|---|
view |
DataView | |
byteOffset |
number |
- Source:
Returns:
- Type
- Array.<shaka.drm.PlayReady.PlayReadyRecord>
Type Definitions
PlayReadyRecord
The parsed result of a PlayReady object record.
Type:
- {type: number, value: !Uint8Array}
Properties:
Name | Type | Description |
---|---|---|
type |
number | Type of data stored in the record. |
value |
Uint8Array | Record content. |
- Source: