Player state changed for callbacks

The state of the player is now set before events are dispatched.