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

AbrController

Extends:

src/event-handler.js~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: *): *

Public Constructors

public constructor() source

Public Members

public bitrateTestDelay: * source

public fragCurrent: * source

public hls: * source

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

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:

*