Class: ClipEndedEvent

  • ClipEndedEvent provides data for the cast.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 and endedReason 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.

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

constant

number

The time in media (in seconds) when clip ended.

endedReason

constant

(non-null cast.framework.events.EndedReason or undefined)

The reason the clip ended.