add recorder.onStop callback, when stop, call recorder.onStop() method