Class: MediaElementEvent

  • cast.framework.events.MediaElementEvent provides event data for events forwarded from the MediaElement.

  • The constructor for MediaElementEvent takes a required event type and an optional current media time.

  • The currentMediaTime property indicates the time in seconds of the currently playing clip when the event was fired, or is undefined if playback hasn't started.

Constructor

MediaElementEvent

new MediaElementEvent(type, currentMediaTime)

Parameter

type

cast.framework.events.EventType

Value must not be null.

currentMediaTime

Optional

number

Property

currentMediaTime

constant

(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.