TSDemuxer
Static Method Summary
| Static Public Methods | ||
| public static | createTrack(type: string, duration: number): object Creates a track model internal to demuxer used to drive remuxing input | |
| public static |  | |
| Static Private Methods | ||
| private static | _syncOffset(data: *): * | |
Constructor Summary
| Public Constructor | ||
| public |  | |
Member Summary
| Public Members | ||
| public | aacLastPTS: * | |
| public | aacOverFlow: * | |
| public | audioCodec: * | |
| public | avcSample: * | |
| public | config: * | |
| public | contiguous: * | |
| public | observer: * | |
| public |  | |
| public | pmtUnknownTypes: {} | |
| public | remuxer: * | |
| public | sampleAes: * | |
| public |  | |
| public | videoCodec: * | |
| Private Members | ||
| private | _audioTrack: * | |
| private | _avcTrack: * | |
| private | _duration: * | |
| private | _id3Track: * | |
| private | _initPTS: * | |
| private | _pmtId: * | |
| private | _txtTrack: * | |
Method Summary
| Public Methods | ||
| public | append(data: *, timeOffset: *, contiguous: *, accurateTimeOffset: *) | |
| public | decryptAndRemux(audioTrack: *, videoTrack: *, id3Track: *, textTrack: *, timeOffset: *, contiguous: *, accurateTimeOffset: *) | |
| public | decryptAndRemuxAvc(audioTrack: *, videoTrack: *, id3Track: *, textTrack: *, timeOffset: *, contiguous: *, accurateTimeOffset: *) | |
| public | destroy() | |
| public | discardEPB(data: *): * remove Emulation Prevention bytes from a RBSP | |
| public | pushAccesUnit(avcSample: *, avcTrack: *) | |
| public | resetInitSegment(initSegment: object, audioCodec: string, videoCodec: string, duration: number) Initializes a new init segment on the demuxer/remuxer interface. | |
| public |  | |
| public | setDecryptData(decryptdata: *) | |
| Private Methods | ||
| private | _getLastNalUnit(): * | |
| private | _insertSampleInOrder(arr: *, data: *) | |
| private | _parseAACPES(pes: *) | |
| private | _parseAVCNALu(array: *): * | |
| private | _parseAVCPES(pes: *, last: *) | |
| private | _parseID3PES(pes: *) | |
| private | _parseMPEGPES(pes: *) | |
| private | _parsePAT(data: *, offset: *): * | |
| private | _parsePES(stream: *): * | |
| private | _parsePMT(data: *, offset: *, mpegSupported: *, isSampleAes: *): * | |
| private | _trackUnknownPmt(type: *, logLevel: *, message: *): * | |
Static Public Methods
public static createTrack(type: string, duration: number): object source
Creates a track model internal to demuxer used to drive remuxing input
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 contiguous: * source
public observer: * source
public pmtUnknownTypes: {} source
public remuxer: * source
public sampleAes: * source
public typeSupported: * source
public videoCodec: * source
Private Members
private _audioTrack: * source
private _avcTrack: * source
private _duration: * source
private _id3Track: * source
private _initPTS: * source
private _pmtId: * source
private _txtTrack: * source
Public Methods
public append(data: *, timeOffset: *, contiguous: *, accurateTimeOffset: *) source
Params:
| Name | Type | Attribute | Description | 
| data | * | ||
| timeOffset | * | ||
| contiguous | * | ||
| accurateTimeOffset | * | 
public decryptAndRemux(audioTrack: *, videoTrack: *, id3Track: *, textTrack: *, timeOffset: *, contiguous: *, accurateTimeOffset: *) source
Params:
| Name | Type | Attribute | Description | 
| audioTrack | * | ||
| videoTrack | * | ||
| id3Track | * | ||
| textTrack | * | ||
| timeOffset | * | ||
| contiguous | * | ||
| accurateTimeOffset | * | 
public decryptAndRemuxAvc(audioTrack: *, videoTrack: *, id3Track: *, textTrack: *, timeOffset: *, contiguous: *, accurateTimeOffset: *) source
Params:
| Name | Type | Attribute | Description | 
| audioTrack | * | ||
| videoTrack | * | ||
| id3Track | * | ||
| textTrack | * | ||
| timeOffset | * | ||
| contiguous | * | ||
| accurateTimeOffset | * | 
public destroy() source
public discardEPB(data: *): * source
remove Emulation Prevention bytes from a RBSP
Params:
| Name | Type | Attribute | Description | 
| data | * | 
Return:
| * | 
public pushAccesUnit(avcSample: *, avcTrack: *) source
Params:
| Name | Type | Attribute | Description | 
| avcSample | * | ||
| avcTrack | * | 
public resetInitSegment(initSegment: object, 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.
public resetTimeStamp() source
public setDecryptData(decryptdata: *) source
Params:
| Name | Type | Attribute | Description | 
| decryptdata | * | 
Private Methods
private _insertSampleInOrder(arr: *, data: *) source
Params:
| Name | Type | Attribute | Description | 
| arr | * | ||
| data | * | 
private _parseAACPES(pes: *) source
Params:
| Name | Type | Attribute | Description | 
| pes | * | 
private _parseAVCPES(pes: *, last: *) source
Params:
| Name | Type | Attribute | Description | 
| pes | * | ||
| last | * | 
private _parseID3PES(pes: *) source
Params:
| Name | Type | Attribute | Description | 
| pes | * | 
private _parseMPEGPES(pes: *) source
Params:
| Name | Type | Attribute | Description | 
| pes | * | 
private _parsePAT(data: *, offset: *): * source
Params:
| Name | Type | Attribute | Description | 
| data | * | ||
| offset | * | 
Return:
| * | 
private _parsePMT(data: *, offset: *, mpegSupported: *, isSampleAes: *): * source
Params:
| Name | Type | Attribute | Description | 
| data | * | ||
| offset | * | ||
| mpegSupported | * | ||
| isSampleAes | * | 
Return:
| * | 
private _trackUnknownPmt(type: *, logLevel: *, message: *): * source
Params:
| Name | Type | Attribute | Description | 
| type | * | ||
| logLevel | * | ||
| message | * | 
Return:
| * | 
 
    
  