TSDemuxer
Static Method Summary
Static Public Methods | ||
public static |
createTrack(type: undefined, duration: number): DemuxedTrack Creates a track model internal to demuxer used to drive remuxing input |
|
public static |
probe(data: Uint8Array): boolean |
|
public static |
syncOffset(data: Uint8Array): * |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
aacLastPTS: * |
|
public |
aacOverFlow: * |
|
public |
audioCodec: * |
|
public |
avcSample: * |
|
public |
config: * |
|
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 |
decrypt(demuxResult: DemuxerResult, sampleAes: SampleAesDecrypter): Promise |
|
public |
demux(data: Uint8Array, timeOffset: number, isSampleAes: undefined, flush: undefined): DemuxerResult |
|
public |
demuxSampleAes(data: Uint8Array, keyData: KeyData, timeOffset: number): Promise |
|
public |
destroy() |
|
public |
extractRemainingSamples(demuxResult: DemuxerResult) |
|
public |
flush(): * |
|
public |
getLastNalUnit(): * |
|
public |
parseAACPES(pes: PES) |
|
public |
parseAVCNALu(array: Uint8Array): Array |
|
public |
parseAVCPES(pes: PES, last: boolean) |
|
public |
parseID3PES(pes: PES) |
|
public |
parseMPEGPES(pes: PES) |
|
public |
|
|
public |
resetInitSegment(audioCodec: string, videoCodec: string, duration: number) Initializes a new init segment on the demuxer/remuxer interface. |
|
public |
|
Static Public Methods
public static createTrack(type: undefined, duration: number): DemuxedTrack source
Creates a track model internal to demuxer used to drive remuxing input
Return:
DemuxedTrack |
public static probe(data: Uint8Array): boolean source
Params:
Name | Type | Attribute | Description |
data | Uint8Array |
public static syncOffset(data: Uint8Array): * source
Params:
Name | Type | Attribute | Description |
data | Uint8Array |
Return:
* |
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 decrypt(demuxResult: DemuxerResult, sampleAes: SampleAesDecrypter): Promise source
Params:
Name | Type | Attribute | Description |
demuxResult | DemuxerResult | ||
sampleAes | SampleAesDecrypter |
public demux(data: Uint8Array, timeOffset: number, isSampleAes: undefined, flush: undefined): DemuxerResult source
Params:
Name | Type | Attribute | Description |
data | Uint8Array | ||
timeOffset | number | ||
isSampleAes | undefined | ||
flush | undefined |
Return:
DemuxerResult |
public demuxSampleAes(data: Uint8Array, keyData: KeyData, timeOffset: number): Promise source
Params:
Name | Type | Attribute | Description |
data | Uint8Array | ||
keyData | KeyData | ||
timeOffset | number |
public destroy() source
public extractRemainingSamples(demuxResult: DemuxerResult) source
Params:
Name | Type | Attribute | Description |
demuxResult | DemuxerResult |
public parseAACPES(pes: PES) source
Params:
Name | Type | Attribute | Description |
pes | PES |
public parseAVCNALu(array: Uint8Array): Array source
Params:
Name | Type | Attribute | Description |
array | Uint8Array |
public parseAVCPES(pes: PES, last: boolean) source
Params:
Name | Type | Attribute | Description |
pes | PES | ||
last | boolean |
public parseID3PES(pes: PES) source
Params:
Name | Type | Attribute | Description |
pes | PES |
public parseMPEGPES(pes: PES) source
Params:
Name | Type | Attribute | Description |
pes | PES |
public resetContiguity() source
public resetInitSegment(audioCodec: string, videoCodec: string, duration: number) 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.