Type Alias: ThroughputSelectorOptions
type ThroughputSelectorOptions = object;Defined in: ThroughputSelectorOptions.ts:10
Beta
The options of createThroughputSelector.
Both factors must be finite numbers above 0 and at most 1, and upgradeFactor must not exceed safetyFactor. The tolerance must be a finite number of 0 or more. createThroughputSelector throws a RangeError for an invalid option.
Properties
safetyFactor?
safetyFactor?: number;Defined in: ThroughputSelectorOptions.ts:18
The fraction of the effective throughput that a rung may use. The selector picks the highest rung at or below effectiveThroughput * safetyFactor. hls.js and shaka-player use 0.95. dash.js uses 0.9.
Default Value
DEFAULT_SAFETY_FACTOR
starvationTolerance?
starvationTolerance?: number;Defined in: ThroughputSelectorOptions.ts:37
The seconds of stall that the second pass of the starvation guard allows, capped at the segment duration. The second pass runs when no rung downloads before the buffer empties. hls.js uses 4 as maxStarvationDelay.
Default Value
DEFAULT_STARVATION_TOLERANCE
upgradeFactor?
upgradeFactor?: number;Defined in: ThroughputSelectorOptions.ts:28
The fraction of the effective throughput that a higher rung may use. An upgrade needs the new rung at or below effectiveThroughput * upgradeFactor. A value equal to safetyFactor disables the hysteresis. hls.js uses 0.7 for the same rule.
Default Value
DEFAULT_UPGRADE_FACTOR