Home Reference Source
import AbrController from 'hls.js/src/controller/abr-controller.js'
public class | source

AbrController

Extends:

EventHandler → AbrController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

hls: *

public
public get
public set
public

onCheck: *

public

timer: *

Private Members
private
private get
private

Method Summary

Public Methods
public
public
public

onError(data: *)

public

onFragBuffered(data: *)

public

onFragLoaded(data: *)

public

onFragLoading(data: *)

Private Methods
private
private

_findBestLevel(currentLevel: *, currentFragDuration: *, currentBw: *, minAutoLevel: *, maxAutoLevel: *, maxFetchDuration: *, bwFactor: *, bwUpFactor: *, levels: *): *

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

Public Constructors

public constructor() source

Override:

EventHandler#constructor

Public Members

public bitrateTestDelay: * source

public fragCurrent: * source

public hls: * source

Override:

EventHandler#hls

public lastLoadedFragLevel: number source

public get nextAutoLevel: * source

public set nextAutoLevel source

public onCheck: * source

public timer: * source

Private Members

private _bwEstimator: * source

private get _nextABRAutoLevel: * source

private _nextAutoLevel: * source

Public Methods

public clearTimer() source

public destroy() source

Override:

EventHandler#destroy

public onError(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFragBuffered(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFragLoaded(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFragLoading(data: *) source

Params:

NameTypeAttributeDescription
data *

Private Methods

private _abandonRulesCheck() source

private _findBestLevel(currentLevel: *, currentFragDuration: *, currentBw: *, minAutoLevel: *, maxAutoLevel: *, maxFetchDuration: *, bwFactor: *, bwUpFactor: *, levels: *): * source

Params:

NameTypeAttributeDescription
currentLevel *
currentFragDuration *
currentBw *
minAutoLevel *
maxAutoLevel *
maxFetchDuration *
bwFactor *
bwUpFactor *
levels *

Return:

*