Contents

timeDidChange

An event that happens at a specified interval.

Declaration

attribute  timeDidChange;

Discussion

This event fires every time a set number of seconds, starting from the beginning of the media item or 0 seconds, as specified in the extraInfo parameter for the listener, occurs. The listener is passed the following attributes:

  • interval—The desired time interval. This value should be an integer. Floating point values are transformed into integers. The default value is 1.

  • target—The event object, which is the Player object.

  • time—The current playback time, in seconds.

  • timeStamp—The time that the event occurred.

  • type—The name of the event.

See Also

Responding to Events