Event listener for changes in the playback state.
Called every time the player's playback state changes.