AI-generated Key Takeaways
-
cast.framework.events.ClipEndedEventis an event data class for thecast.framework.events.EventType.CLIP_ENDEDevent. -
It has a constructor that takes
currentMediaTime(number) and an optionalendedReason(acast.framework.events.EndedReason). -
The event has properties
currentMediaTimeandendedReasonwhich indicate the time the clip ended and the reason for its end, respectively.
cast.framework.events. ClipEndedEvent
Event data for the cast.framework.events.EventType.CLIP_ENDED event.
Constructor
ClipEndedEvent
new ClipEndedEvent(currentMediaTime, endedReason)
Parameter |
|
|---|---|
|
currentMediaTime |
number |
|
endedReason |
Optional cast.framework.events.EndedReason The reason the clip ended Value must not be null. |
Properties
currentMediaTime
number
The time in media (in seconds) when clip ended.
endedReason
(non-null cast.framework.events.EndedReason or undefined)
The reason the clip ended.