interface SegmentRequestFinishedEvent {
    downloadTime: number;
    duration: number;
    httpStatus: number;
    isInit: boolean;
    mimeType: string;
    size: number;
    success: boolean;
    timeToFirstByte: number;
    timestamp: number;
    type: PlayerEvent;
    uid: string;
    url: string;
}

Hierarchy (view full)

Properties

downloadTime: number

The time needed to finish the request.

duration: number

The expected size of the segment in seconds.

httpStatus: number

The HTTP status code of the request. Status code 0 means a network or CORS error happened.

isInit: boolean

Indicates whether the segment is an init segment (true) or not (false).

mimeType: string

The mimeType of the segment

size: number

The size of the downloaded data, in bytes.

success: boolean

Indicates whether the request was successful (true) or failed (false).

timeToFirstByte: number

The time-to-first-byte for this request in seconds. Returns -1 in case no bytes were received, i.e. the request has been cancelled before receiving the headers.

timestamp: number

The time at which this event was fired

Event type, e.g. 'play'

uid: string

The Unique ID of the downloaded segment

url: string

The URL of the request.