AI-generated Key Takeaways
-
ClipEndedEvent
provides data for thecast.framework.events.EventType.CLIP_ENDED
event, signaling when a media clip has finished playing. -
It includes
currentMediaTime
indicating the playback time when the clip ended andendedReason
specifying why the clip ended (e.g., naturally, skipped, etc.). -
Developers can access these properties to understand the context of the clip ending and implement corresponding logic in their web receiver application.
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.