Home Reference Source
import BaseAudioDemuxer from 'hls.js/src/demux/base-audio-demuxer.ts'
public class | source

BaseAudioDemuxer

Member Summary

Public Members
public
public
public

initPTS: *

Private Members
private

_audioTrack: DemuxedAudioTrack

private

_id3Track: DemuxedMetadataTrack

Method Summary

Public Methods
public

appendFrame(track: DemuxedAudioTrack, data: Uint8Array, offset: number)

public

canParse(data: Uint8Array, offset: number): boolean

public

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

public

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

public
public

flush(timeOffset: number): DemuxerResult

public
public

resetInitSegment(audioCodec: string, videoCodec: string, duration: number)

public

Public Members

public cachedData: * source

public frameIndex: number source

public initPTS: * source

Private Members

private _audioTrack: DemuxedAudioTrack source

private _id3Track: DemuxedMetadataTrack source

Public Methods

public appendFrame(track: DemuxedAudioTrack, data: Uint8Array, offset: number) source

Params:

NameTypeAttributeDescription
track DemuxedAudioTrack
data Uint8Array
offset number

public canParse(data: Uint8Array, offset: number): boolean source

Params:

NameTypeAttributeDescription
data Uint8Array
offset number

Return:

boolean

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 flush(timeOffset: number): DemuxerResult source

Params:

NameTypeAttributeDescription
timeOffset number

Return:

DemuxerResult

public resetContiguity() source

public resetInitSegment(audioCodec: string, videoCodec: string, duration: number) source

Params:

NameTypeAttributeDescription
audioCodec string
videoCodec string
duration number

public resetTimeStamp() source