onStateChange

Called when recording state changes