AI-generated Key Takeaways
-
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.
cast.framework.events. SegmentDownloadedEvent
Event data for a cast.framework.events.EventType.SEGMENT_DOWNLOADED
event.
Constructor
SegmentDownloadedEvent
new SegmentDownloadedEvent(downloadTime, size)
Parameter |
|
---|---|
downloadTime |
Optional number |
size |
Optional number |
Properties
downloadTime
(number or undefined)
The time it took to download the segment, in milliseconds.
size
(number or undefined)
The number of bytes in the segment.