Contents

stateDidChange

An event that indicates the state of the player has changed.

Declaration

attribute  stateDidChange;

Discussion

The listener is passed an event object with the following attributes:

  • duration—The duration, in seconds, of the asset being played.

  • elapsedTime—The elapsed time, in seconds, of the asset being played.

  • oldState—The previous state of the player. Valid values are playing, paused, and scanning.

  • state—The state that the player is has switched to. Valid values are playing, paused, and scanning.

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

  • timeStamp—The time that the event occurred.

  • type—The name of the event.

See Also

Responding to Events