TSDemuxer
Static Method Summary
Static Public Methods | ||
public static |
createTrack(type: undefined, duration: undefined): DemuxedTrack Creates a track model internal to demuxer used to drive remuxing input |
|
public static |
|
Static Private Methods | ||
private static |
_syncOffset(data: undefined): * |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
aacLastPTS: * |
|
public |
aacOverFlow: * |
|
public |
audioCodec: * |
|
public |
avcSample: * |
|
public |
config: * |
|
public |
|
|
public |
observer: * |
|
public |
|
|
public |
|
|
public |
sampleAes: * |
|
public |
|
|
public |
videoCodec: * |
Private Members | ||
private |
_audioTrack: * |
|
private |
_avcTrack: * |
|
private |
|
|
private |
_id3Track: * |
|
private |
_initDTS: * |
|
private |
_initPTS: * |
|
private |
|
|
private |
_txtTrack: * |
Method Summary
Public Methods | ||
public |
|
|
public |
demux(data: Uint8Array, timeOffset: undefined, isSampleAes: undefined, flush: undefined): DemuxerResult |
|
public |
demuxSampleAes(data: undefined, decryptData: undefined, timeOffset: undefined): Promise |
|
public |
destroy() |
|
public |
discardEPB(data: undefined): * remove Emulation Prevention bytes from a RBSP |
|
public |
extractRemainingSamples(demuxResult: DemuxerResult) |
|
public |
flush(): * |
|
public |
pushAccessUnit(avcSample: undefined, avcTrack: undefined) |
|
public |
|
|
public |
resetInitSegment(audioCodec: undefined, videoCodec: undefined, duration: undefined) Initializes a new init segment on the demuxer/remuxer interface. |
|
public |
|
Private Methods | ||
private |
_getLastNalUnit(): * |
|
private |
_insertSampleInOrder(arr: undefined, data: undefined) |
|
private |
_parseAACPES(pes: undefined) |
|
private |
_parseAVCNALu(array: undefined): Array |
|
private |
_parseAVCPES(pes: undefined, last: undefined) |
|
private |
_parseID3PES(pes: undefined) |
|
private |
_parseMPEGPES(pes: undefined) |
Static Public Methods
public static createTrack(type: undefined, duration: undefined): DemuxedTrack source
Creates a track model internal to demuxer used to drive remuxing input
Return:
DemuxedTrack |
public static probe(data: undefined): boolean source
Params:
Name | Type | Attribute | Description |
data | undefined |
Static Private Methods
Public Constructors
public constructor() source
Public Members
public aacLastPTS: * source
public aacOverFlow: * source
public audioCodec: * source
public avcSample: * source
public config: * source
public observer: * source
public remainderData: * source
public sampleAes: * source
public typeSupported: * source
public videoCodec: * source
Private Members
private _audioTrack: * source
private _avcTrack: * source
private _id3Track: * source
private _initDTS: * source
private _initPTS: * source
private _txtTrack: * source
Public Methods
public demux(data: Uint8Array, timeOffset: undefined, isSampleAes: undefined, flush: undefined): DemuxerResult source
Params:
Name | Type | Attribute | Description |
data | Uint8Array | ||
timeOffset | undefined | ||
isSampleAes | undefined | ||
flush | undefined |
Return:
DemuxerResult |
public demuxSampleAes(data: undefined, decryptData: undefined, timeOffset: undefined): Promise source
public destroy() source
public discardEPB(data: undefined): * source
remove Emulation Prevention bytes from a RBSP
Params:
Name | Type | Attribute | Description |
data | undefined |
Return:
* |
public extractRemainingSamples(demuxResult: DemuxerResult) source
Params:
Name | Type | Attribute | Description |
demuxResult | DemuxerResult |
public resetContiguity() source
public resetInitSegment(audioCodec: undefined, videoCodec: undefined, duration: undefined) source
Initializes a new init segment on the demuxer/remuxer interface. Needed for discontinuities/track-switches (or at stream start) Resets all internal track instances of the demuxer.
public resetTimeStamp() source
Private Methods
private _parseAVCNALu(array: undefined): Array source
Params:
Name | Type | Attribute | Description |
array | undefined |