Skip to content

Type Alias: SegmentSample ​

ts
type SegmentSample = object;

Defined in: SegmentSample.ts:8

Beta

A finished or abandoned segment download.

Properties ​

aborted? ​

ts
aborted?: boolean;

Defined in: SegmentSample.ts:40

true when the player cancelled the download.


bandwidth ​

ts
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 ​

ts
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 ​

ts
duration: number;

Defined in: SegmentSample.ts:25

The media duration of the segment, in seconds.


isReplacement? ​

ts
isReplacement?: boolean;

Defined in: SegmentSample.ts:35

true when the segment replaced buffered media.


timing ​

ts
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.

A Streaming Video Technology Alliance project.