new PESAVCParser(pes)
Parameters:
Name | Type | Description |
---|---|---|
pes |
HlsTsDataStream | Data stream to parse |
- Source:
Extends
Methods
getData() → {Uint8Array}
Get data stream as Uint8 byte array
- Inherited From:
- Source:
Returns:
Data stream
- Type
- Uint8Array
getHeaderForByteOffset(offset) → {HlsTsPesHeader}
Get a PES header at a specific position in the data stream
Parameters:
Name | Type | Description |
---|---|---|
offset |
number | Position in the data stream |
- Inherited From:
- Source:
Returns:
- Type
- HlsTsPesHeader
getHeaders() → {Array.<HlsTsPesHeader>}
Get PES headers in this data stream
- Inherited From:
- Source:
Returns:
- Type
- Array.<HlsTsPesHeader>
getId() → {number}
Get program ID
- Inherited From:
- Source:
Returns:
Program ID
- Type
- number
getNalUnits() → {Array.<HlsTsNalUnit>}
Get all Nal Units in this data stream
- Source:
Returns:
- Type
- Array.<HlsTsNalUnit>
nalUnitCategory(type) → {string}
Translates a Nal Unit type value to a Nal Unit category
Parameters:
Name | Type | Description |
---|---|---|
type |
number | Nal Unit Type |
- Source:
Returns:
- Type
- string
nalUnitType(type) → {string}
Translates a Nal Unit type value to a readable string
Parameters:
Name | Type | Description |
---|---|---|
type |
number | Nal Unit Type |
- Source:
Returns:
- Type
- string
rbspFromNalUnit(nalUnit) → {Uint8Array}
Get the RBSP (Raw Byte Sequence Payload) from a Nal Unit
Parameters:
Name | Type | Description |
---|---|---|
nalUnit |
HlsTsNalUnit |
- Source:
Returns:
- Type
- Uint8Array
spsFromNalUnit(nalUnit) → {HlsTsNalUnitSPS}
Get the SPS (Sequence Paramater Set) from a Nal Unit. Returns null
if Nal Unit type is not SPS in
Parameters:
Name | Type | Description |
---|---|---|
nalUnit |
HlsTsNalUnit |
- Source:
Returns:
- Type
- HlsTsNalUnitSPS