Class: ClipEndedEvent

  • cast.framework.events.ClipEndedEvent is an event data class for the cast.framework.events.EventType.CLIP_ENDED event.

  • It has a constructor that takes currentMediaTime (number) and an optional endedReason (a cast.framework.events.EndedReason).

  • The event has properties currentMediaTime and endedReason which indicate the time the clip ended and the reason for its end, respectively.

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.