MP4Demuxer
Static Member Summary
Static Public Members | ||
public static |
|
Static Method Summary
Static Public Methods | ||
public static |
probe(data: Uint8Array): * |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
audioTrack: DemuxedAudioTrack |
|
public |
config: HlsConfig |
|
public |
id3Track: DemuxedMetadataTrack |
|
public |
|
|
public |
|
|
public |
txtTrack: DemuxedUserdataTrack |
|
public |
videoTrack: PassthroughTrack |
Method Summary
Public Methods | ||
public |
demux(data: Uint8Array, timeOffset: number): DemuxerResult |
|
public |
demuxSampleAes(data: Uint8Array, keyData: KeyData, timeOffset: number): Promise |
|
public |
destroy() |
|
public |
extractID3Track(videoTrack: PassthroughTrack, timeOffset: number): DemuxedMetadataTrack |
|
public |
flush(): {"videoTrack": *, "audioTrack": *, "id3Track": *, "textTrack": *} |
|
public |
|
|
public |
resetInitSegment(initSegment: Uint8Array, audioCodec: undefined, videoCodec: undefined, trackDuration: number) |
|
public |
|
Static Public Members
public static minProbeByteLength: * source
Static Public Methods
public static probe(data: Uint8Array): * source
Params:
Name | Type | Attribute | Description |
data | Uint8Array |
Return:
* |
Public Constructors
public constructor() source
Public Members
public audioTrack: DemuxedAudioTrack source
public config: HlsConfig source
public id3Track: DemuxedMetadataTrack source
public remainderData: * source
public txtTrack: DemuxedUserdataTrack source
public videoTrack: PassthroughTrack source
Public Methods
public demux(data: Uint8Array, timeOffset: number): DemuxerResult source
Params:
Name | Type | Attribute | Description |
data | Uint8Array | ||
timeOffset | number |
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 extractID3Track(videoTrack: PassthroughTrack, timeOffset: number): DemuxedMetadataTrack source
Params:
Name | Type | Attribute | Description |
videoTrack | PassthroughTrack | ||
timeOffset | number |
Return:
DemuxedMetadataTrack |
public flush(): {"videoTrack": *, "audioTrack": *, "id3Track": *, "textTrack": *} source
Return:
{"videoTrack": *, "audioTrack": *, "id3Track": *, "textTrack": *} |
public resetContiguity() source
public resetInitSegment(initSegment: Uint8Array, audioCodec: undefined, videoCodec: undefined, trackDuration: number) source
Params:
Name | Type | Attribute | Description |
initSegment | Uint8Array | ||
audioCodec | undefined | ||
videoCodec | undefined | ||
trackDuration | number |