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): * |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
aacOverFlow: * |
|
public |
|
|
public |
avcSample: * |
|
public |
config: HlsConfig |
|
public |
observer: HlsEventEmitter |
|
public |
|
|
public |
|
|
public |
sampleAes: * |
|
public |
typeSupported: TypeSupported |
|
public |
|
Private Members | ||
private |
_audioTrack: DemuxedAudioTrack |
|
private |
_avcTrack: DemuxedAvcTrack |
|
private |
|
|
private |
_id3Track: DemuxedMetadataTrack |
|
private |
|
|
private |
_txtTrack: DemuxedUserdataTrack |
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(samples: undefined): * |
|
public |
parseAACPES(track: DemuxedAudioTrack, pes: PES) |
|
public |
parseAVCNALu(track: DemuxedAvcTrack, array: Uint8Array): Array |
|
public |
parseAVCPES(track: DemuxedAvcTrack, textTrack: DemuxedUserdataTrack, pes: PES, last: boolean) |
|
public |
parseID3PES(id3Track: DemuxedMetadataTrack, pes: PES) |
|
public |
parseMPEGPES(track: DemuxedAudioTrack, pes: PES) |
|
public |
|
|
public |
resetInitSegment(initSegment: undefined, audioCodec: string, videoCodec: string, trackDuration: 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): * source
Params:
Name | Type | Attribute | Description |
data | Uint8Array |
Return:
* |
Public Constructors
public constructor() source
Public Members
public aacOverFlow: * source
public avcSample: * source
public config: HlsConfig source
public observer: HlsEventEmitter source
public remainderData: * source
public sampleAes: * source
public typeSupported: TypeSupported source
Private Members
private _audioTrack: DemuxedAudioTrack source
private _avcTrack: DemuxedAvcTrack source
private _id3Track: DemuxedMetadataTrack source
private _txtTrack: DemuxedUserdataTrack 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 getLastNalUnit(samples: undefined): * source
Params:
Name | Type | Attribute | Description |
samples | undefined |
Return:
* |
public parseAACPES(track: DemuxedAudioTrack, pes: PES) source
Params:
Name | Type | Attribute | Description |
track | DemuxedAudioTrack | ||
pes | PES |
public parseAVCNALu(track: DemuxedAvcTrack, array: Uint8Array): Array source
Params:
Name | Type | Attribute | Description |
track | DemuxedAvcTrack | ||
array | Uint8Array |
public parseAVCPES(track: DemuxedAvcTrack, textTrack: DemuxedUserdataTrack, pes: PES, last: boolean) source
Params:
Name | Type | Attribute | Description |
track | DemuxedAvcTrack | ||
textTrack | DemuxedUserdataTrack | ||
pes | PES | ||
last | boolean |
public parseID3PES(id3Track: DemuxedMetadataTrack, pes: PES) source
Params:
Name | Type | Attribute | Description |
id3Track | DemuxedMetadataTrack | ||
pes | PES |
public parseMPEGPES(track: DemuxedAudioTrack, pes: PES) source
Params:
Name | Type | Attribute | Description |
track | DemuxedAudioTrack | ||
pes | PES |
public resetContiguity() source
public resetInitSegment(initSegment: undefined, audioCodec: string, videoCodec: string, trackDuration: 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.