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

AbrController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public

hls: *

public
public get
public set
public
public
public

timer: *

Private Members
private get
private

Method Summary

Public Methods
public
public
public

onError(event: undefined, data: ErrorData)

public

onFragBuffered(event: undefined, data: FragBufferedData)

public

onFragLoaded(event: undefined, undefined: FragLoadedData)

public

onFragLoading(event: undefined, data: FragLoadingData)

public

onLevelLoaded(event: undefined, data: LevelLoadedData)

public
public
Private Methods
private
private

_findBestLevel(currentBw: number, minAutoLevel: number, maxAutoLevel: number, maxFetchDuration: number, bwFactor: number, bwUpFactor: number): number

Public Constructors

public constructor() source

Public Members

public bitrateTestDelay: number source

public bwEstimator: * source

public fragCurrent: * source

public hls: * source

public lastLoadedFragLevel: number source

public get nextAutoLevel: * source

public set nextAutoLevel: undefined source

public onCheck: Function source

public partCurrent: * source

public timer: * source

Private Members

private get _nextABRAutoLevel: * source

private _nextAutoLevel: number source

Public Methods

public clearTimer() source

public destroy() source

public onError(event: undefined, data: ErrorData) source

Params:

NameTypeAttributeDescription
event undefined
data ErrorData

public onFragBuffered(event: undefined, data: FragBufferedData) source

Params:

NameTypeAttributeDescription
event undefined
data FragBufferedData

public onFragLoaded(event: undefined, undefined: FragLoadedData) source

Params:

NameTypeAttributeDescription
event undefined
undefined FragLoadedData

public onFragLoading(event: undefined, data: FragLoadingData) source

Params:

NameTypeAttributeDescription
event undefined
data FragLoadingData

public onLevelLoaded(event: undefined, data: LevelLoadedData) source

Params:

NameTypeAttributeDescription
event undefined
data LevelLoadedData

public registerListeners() source

public unregisterListeners() source

Private Methods

private _abandonRulesCheck() source

private _findBestLevel(currentBw: number, minAutoLevel: number, maxAutoLevel: number, maxFetchDuration: number, bwFactor: number, bwUpFactor: number): number source

Params:

NameTypeAttributeDescription
currentBw number
minAutoLevel number
maxAutoLevel number
maxFetchDuration number
bwFactor number
bwUpFactor number

Return:

number