Home Reference Source
import EwmaBandWidthEstimator from 'hls.js/src/utils/ewma-bandwidth-estimator.ts'
public class | source

EwmaBandWidthEstimator

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public
public
public
public

Method Summary

Public Methods
public
public
public
public
public

sample(durationMs: number, numBytes: number)

public
public

update(slow: number, fast: number)

Public Constructors

public constructor() source

Public Members

public defaultEstimate_: number source

public defaultTTFB_: number source

public fast_: EWMA source

public minDelayMs_: number source

public minWeight_: number source

public slow_: EWMA source

public ttfb_: EWMA source

Public Methods

public canEstimate(): boolean source

Return:

boolean

public destroy() source

public getEstimate(): number source

Return:

number

public getEstimateTTFB(): number source

Return:

number

public sample(durationMs: number, numBytes: number) source

Params:

NameTypeAttributeDescription
durationMs number
numBytes number

public sampleTTFB(ttfb: number) source

Params:

NameTypeAttributeDescription
ttfb number

public update(slow: number, fast: number) source

Params:

NameTypeAttributeDescription
slow number
fast number