interface DownloadFinishedEvent {
    attempt: number;
    downloadTime: number;
    downloadType: HttpRequestType;
    httpStatus: number;
    maxAttempts: number;
    mimeType: string;
    size: number;
    success: boolean;
    timeToFirstByte: number;
    timestamp: number;
    type: PlayerEvent;
    url: string;
}

Hierarchy (view full)

Properties

attempt: number

Most requests are re-tried a few times if they fail. This marks how many attempts have been made. Starts at 1.

downloadTime: number

The time needed to finish the request.

downloadType: HttpRequestType

Specifies which type of request this was. Valid types are currently manifest, media, and license (for DRM license requests).

httpStatus: number

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

maxAttempts: number

Most requests are re-tried a few times if they fail. This marks the maximum amount of tries to fulfill the request.

mimeType: string

The MIME type of the downloaded data.

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.

timestamp: number

The time at which this event was fired

Event type, e.g. 'play'

url: string

The URL of the request.