Class: SegmentDownloadedEvent

  • SegmentDownloadedEvent provides event data for when a segment is downloaded.

  • The event data includes the time taken to download the segment and its size in bytes.

  • The SegmentDownloadedEvent constructor optionally accepts the download time and size as parameters.

Constructor

SegmentDownloadedEvent

new SegmentDownloadedEvent(downloadTime, size)

Parameter

downloadTime

Optional

number

size

Optional

number

Properties

downloadTime

constant

(number or undefined)

The time it took to download the segment, in milliseconds.

size

constant

(number or undefined)

The number of bytes in the segment.