Home Reference Source
import MP4Demuxer from 'hls.js/src/demux/mp4demuxer.ts'
public class | source

MP4Demuxer

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
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 Methods

public static probe(data: Uint8Array): * source

Params:

NameTypeAttributeDescription
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 timeOffset: number source

public txtTrack: DemuxedUserdataTrack source

public videoTrack: PassthroughTrack source

Public Methods

public demux(data: Uint8Array, timeOffset: number): DemuxerResult source

Params:

NameTypeAttributeDescription
data Uint8Array
timeOffset number

Return:

DemuxerResult

public demuxSampleAes(data: Uint8Array, keyData: KeyData, timeOffset: number): Promise source

Params:

NameTypeAttributeDescription
data Uint8Array
keyData KeyData
timeOffset number

Return:

Promise

public destroy() source

public extractID3Track(videoTrack: PassthroughTrack, timeOffset: number): DemuxedMetadataTrack source

Params:

NameTypeAttributeDescription
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:

NameTypeAttributeDescription
initSegment Uint8Array
audioCodec undefined
videoCodec undefined
trackDuration number

public resetTimeStamp() source