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:39

true when the player cancelled the download.


bandwidth ​

ts
bandwidth: number;

Defined in: SegmentSample.ts:19

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:29

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:24

The media duration of the segment, in seconds.


isReplacement? ​

ts
isReplacement?: boolean;

Defined in: SegmentSample.ts:34

true when the segment replaced buffered media.


timing ​

ts
timing: ResourceTiming;

Defined in: SegmentSample.ts:12

The timing of the download. The player passes the same object to the throughput estimator.

A Streaming Video Technology Alliance project.