Class: MediaPauseEvent

  • The cast.framework.events.MediaPauseEvent class provides data for pause events coming from the MediaElement.

  • When created, it can optionally include the currentMediaTime and whether the media ended due to reaching its end.

  • The ended property reveals if the pause happened because the media stream finished playing.

Constructor

MediaPauseEvent

new MediaPauseEvent(currentMediaTime, ended)

Parameter

currentMediaTime

Optional

number

ended

Optional

boolean

Property

ended

boolean

Indicate if the media ended (indicates the pause was fired due to stream reached the end).