Type Alias: SegmentSample
type SegmentSample = object;Defined in: SegmentSample.ts:8
Beta
A finished or abandoned segment download.
Properties
aborted?
aborted?: boolean;Defined in: SegmentSample.ts:40
true when the player cancelled the download.
bandwidth
bandwidth: number;Defined in: SegmentSample.ts:20
The bandwidth of the requested rung, in bits per second. The value is the same number as the ladder entry of the rung, never a measured rate. The value is authoritative. A selector that keeps a current rung corrects it from this value.
bufferLevel
bufferLevel: number;Defined in: SegmentSample.ts:30
The seconds of media buffered ahead of the playhead at response end, before the segment is appended.
duration
duration: number;Defined in: SegmentSample.ts:25
The media duration of the segment, in seconds.
isReplacement?
isReplacement?: boolean;Defined in: SegmentSample.ts:35
true when the segment replaced buffered media.
timing
timing: ResourceTiming;Defined in: SegmentSample.ts:13
The timing of the download. The player passes the same object to the throughput estimator. The starvation guard reads the time to first byte from responseStart, when responseStart is inside the response.