OnStateChangedNative

Called when the state of the capture changed.