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

fast_: *

public
public
public

slow_: *

Method Summary

Public Methods
public
public
public
public

sample(durationMs: number, numBytes: number)

public

update(slow: number, fast: number)

Public Constructors

public constructor() source

Public Members

public defaultEstimate_: * source

public fast_: * source

public minDelayMs_: number source

public minWeight_: number source

public slow_: * source

Public Methods

public canEstimate(): boolean source

Return:

boolean

public destroy() source

public getEstimate(): number source

Return:

number

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

Params:

NameTypeAttributeDescription
durationMs number
numBytes number

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

Params:

NameTypeAttributeDescription
slow number
fast number