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

MP3Demuxer

Extends:

src/demux/base-audio-demuxer.js~BaseAudioDemuxer → MP3Demuxer

Static Method Summary

Static Public Methods
public static

Member Summary

Private Members
private

_audioTrack: {"container": string, "type": string, "id": number, "pid": *, "sequenceNumber": *, "segmentCodec": string, "samples": *, "manifestCodec": *, "duration": *, "inputTimeScale": number, "dropped": *}

Method Summary

Public Methods
public

appendFrame(track: undefined, data: undefined, offset: undefined): *

public

canParse(data: undefined, offset: undefined): *

public

resetInitSegment(initSegment: undefined, audioCodec: undefined, videoCodec: undefined, trackDuration: number)

Static Public Methods

public static probe(data: undefined): boolean source

Params:

NameTypeAttributeDescription
data undefined

Return:

boolean

Private Members

private _audioTrack: {"container": string, "type": string, "id": number, "pid": *, "sequenceNumber": *, "segmentCodec": string, "samples": *, "manifestCodec": *, "duration": *, "inputTimeScale": number, "dropped": *} source

Public Methods

public appendFrame(track: undefined, data: undefined, offset: undefined): * source

Params:

NameTypeAttributeDescription
track undefined
data undefined
offset undefined

Return:

*

public canParse(data: undefined, offset: undefined): * source

Params:

NameTypeAttributeDescription
data undefined
offset undefined

Return:

*

public resetInitSegment(initSegment: undefined, audioCodec: undefined, videoCodec: undefined, trackDuration: number) source

Params:

NameTypeAttributeDescription
initSegment undefined
audioCodec undefined
videoCodec undefined
trackDuration number