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

AudioStreamController

Extends:

EventHandlerTaskLoop → 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
Private Members
private

_state: *

Method Summary

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

onInitPtsFound(data: *)

public
public

onMediaAttached(data: *)

public
public
public
public

startLoad(startPosition: *)

public
Private Methods
private

Inherited Summary

From class EventHandler
public
public

hls: *

public
public
public
public

onEvent(event: *, data: *)

arguments: event (string), data (any)

public

onEventGeneric(event: *, data: *)

public
public
public
public
From class TaskLoop
private
private
public
public
public abstract

doTick()

For subclass to implement task logic

public
public
public

tick(forceAsync: Wether to force async): boolean

Public Constructors

public constructor() source

Override:

TaskLoop#constructor

Public Members

public appended: boolean source

public audioCodecSwap: boolean source

public audioSwitch: boolean source

public config: * source

public demuxer: * source

public fragCurrent: * source

public fragLoadError: number source

public fragPrevious: * source

public fragmentTracker: * source

public initPTS: *[] source

public lastCurrentTime: * source

public loadedmetadata: boolean source

public media: * source

public mediaBuffer: * source

public nextLoadPosition: * source

public onvended: * source

public onvseeking: * source

public pendingBuffering: boolean source

public pendingData: undefined[] source

public retryDate: * source

public startFragRequested: boolean source

public startPosition: * source

public set state source

public get state: * source

public trackId: * source

public tracks: * source

public videoBuffer: * source

public videoTrackCC: * source

public waitingFragment: * source

Private Members

private _state: * source

Public Methods

public doTick() source

For subclass to implement task logic

Override:

TaskLoop#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 onHandlerDestroyed() source

Override:

EventHandler#onHandlerDestroyed

public onHandlerDestroying() source

Override:

EventHandler#onHandlerDestroying

public onInitPtsFound(data: *) source

Params:

NameTypeAttributeDescription
data *

public onKeyLoaded() source

public onMediaAttached(data: *) source

Params:

NameTypeAttributeDescription
data *

public onMediaDetaching() source

public onMediaEnded() source

public onMediaSeeking() source

public startLoad(startPosition: *) source

Params:

NameTypeAttributeDescription
startPosition *

public stopLoad() source

Private Methods

private _checkAppendedParsed() source