Class: SegmentDownloadedEvent

  • The cast.framework.events.SegmentDownloadedEvent class provides data for segment download events within the Cast framework.

  • This event includes information about the time taken to download the segment (downloadTime) and the size of the segment in bytes (size).

  • Developers can use this event data to monitor and optimize segment downloads during Cast sessions.

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.