Interface MKDownloadFinishedEvent

MKPlayer event base.

Hierarchy

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

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 timestamp (in milliseconds) when this event was fired.

Event type.

url: string

The URL of the request.