Skip to content

Type Alias: ThroughputEstimator ​

ts
type ThroughputEstimator = object;

Defined in: ThroughputEstimator.ts:8

Throughput Estimator.

Methods ​

getEstimate() ​

ts
getEstimate(): number;

Defined in: ThroughputEstimator.ts:22

Returns the current estimate of the throughput (in bits per second)

Returns ​

number

The current estimate of the throughput


sample() ​

ts
sample(sample): void;

Defined in: ThroughputEstimator.ts:15

Adds a sample to the throughput estimator. The estimator ignores a sample with an encodedBodySize or a duration at or below 0, NaN, or Infinity.

Parameters ​

sample ​

ResourceTiming

The timing sample to add

Returns ​

void

A Streaming Video Technology Alliance project.