Home Reference Source
import AudioStreamController from 'hls.js/src/controller/audio-stream-controller.js'
public class | source

AudioStreamController

Extends:

src/task-loop.js~TaskLoopBaseStreamController → AudioStreamController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public

config: *

public

demuxer: *

public
public
public
public
public

initPTS: *[]

public
public
public

media: *

public
public
public
public
public
public
public
public
public
public set
public get

state: *

public

trackId: *

public

tracks: *

public
public
public
public
Private Members
private

_state: *

Method Summary

Public Methods
public
public

doTick()

public
public
public
public

onBufferAppended(data: *)

public

onBufferCreated(data: *)

public
public
public

onError(data: *)

public

onFragLoaded(data: *)

public

onFragParsed(data: *)

public
public
public

onInitPtsFound(data: *)

public
public

onMediaAttached(data: *)

public
public

startLoad(startPosition: *)

Private Methods
private

Inherited Summary

From class BaseStreamController
public

demuxer: *

public
public
public
public
public
public
public

state: *

public

computeLivePosition(sliding: *, levelDetails: *): *

public

doTick()

public
public
public
public
public
public
private

_streamEnded(bufferInfo: *, levelDetails: *): boolean

Public Constructors

public constructor() source

Public Members

public appended: boolean source

public audioCodecSwap: boolean source

public audioSwitch: boolean source

public config: * source

public demuxer: * source

Override:

BaseStreamController#demuxer

public fragCurrent: * source

Override:

BaseStreamController#fragCurrent

public fragLoadError: number source

public fragPrevious: * source

Override:

BaseStreamController#fragPrevious

public fragmentTracker: * source

Override:

BaseStreamController#fragmentTracker

public initPTS: *[] source

public lastCurrentTime: * source

Override:

BaseStreamController#lastCurrentTime

public loadedmetadata: boolean source

public media: * source

public mediaBuffer: * source

public nextLoadPosition: * source

Override:

BaseStreamController#nextLoadPosition

public onvended: * source

public onvseeking: * source

public pendingBuffering: boolean source

public pendingData: undefined[] source

public retryDate: * source

public startFragRequested: boolean source

public startPosition: * source

Override:

BaseStreamController#startPosition

public set state source

Override:

BaseStreamController#state

public get state: * source

Override:

BaseStreamController#state

public trackId: * source

public tracks: * source

public videoBuffer: * source

public videoTrackCC: * source

public waitingFragment: * source

public waitingVideoCC: * source

Private Members

private _state: * source

Public Methods

public clearWaitingFragment() source

public doTick() source

Override:

BaseStreamController#doTick

public onAudioTrackLoaded(data: *) source

Params:

NameTypeAttributeDescription
data *

public onAudioTrackSwitching(data: *) source

Params:

NameTypeAttributeDescription
data *

public onAudioTracksUpdated(data: *) source

Params:

NameTypeAttributeDescription
data *

public onBufferAppended(data: *) source

Params:

NameTypeAttributeDescription
data *

public onBufferCreated(data: *) source

Params:

NameTypeAttributeDescription
data *

public onBufferFlushed() source

public onBufferReset() source

public onError(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFragLoaded(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFragParsed(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFragParsingData(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFragParsingInitSegment(data: *) source

Params:

NameTypeAttributeDescription
data *

public onInitPtsFound(data: *) source

Params:

NameTypeAttributeDescription
data *

public onKeyLoaded() source

public onMediaAttached(data: *) source

Params:

NameTypeAttributeDescription
data *

public onMediaDetaching() source

public startLoad(startPosition: *) source

Override:

BaseStreamController#startLoad

Params:

NameTypeAttributeDescription
startPosition *

Private Methods

private _checkAppendedParsed() source