Contents

stateWillChange

An event that indicates the state of the player is about to change.

Declaration

attribute  stateWillChange;

Discussion

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

  • 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