The stateChanged event occurs when the state of the player changes. For example, the state goes from STOPPED to PLAYING when the play button is pressed.
For example, you could connect the setEmphasis action to this event.