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 areplaying,paused, andscanning.state—The state that the player is has switched to. Valid values areplaying,paused, andscanning.target—The event object, which is the Player object.timeStamp—The time that the event occurred.type—The name of the event.