AI-generated Key Takeaways
-
The
cast.framework.events.MediaPauseEvent
class provides data forpause
events coming from theMediaElement
. -
When created, it can optionally include the
currentMediaTime
and whether the mediaended
due to reaching its end. -
The
ended
property reveals if the pause happened because the media stream finished playing.
cast.framework.events. MediaPauseEvent
Event data for pause
events forwarded from the MediaElement
.
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).