AI-generated Key Takeaways
-
MediaElementEvent
provides data for events originating from theMediaElement
. -
It includes the event
type
and optionally thecurrentMediaTime
of the media playback when the event occurred. -
currentMediaTime
indicates the playback time in seconds and is undefined if playback hasn't begun.
cast.framework.events. MediaElementEvent
Event data for all events forwarded from the MediaElement
.
Constructor
MediaElementEvent
new MediaElementEvent(type, currentMediaTime)
Parameter |
|
---|---|
type |
cast.framework.events.EventType Value must not be null. |
currentMediaTime |
Optional number |
Property
currentMediaTime
(number or undefined)
The time in the currently-playing clip when the event was fired (in
seconds). This is undefined
if playback has not started yet.