From 6323e6d3cb1f0e132924e6171d4e0e128c33c7a4 Mon Sep 17 00:00:00 2001 From: Jamsheed Kamardeen Date: Fri, 2 Oct 2020 18:55:11 +0530 Subject: [PATCH] Fix for onStop changes not reflecting --- src/libs/MicrophoneRecorder.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/MicrophoneRecorder.js b/src/libs/MicrophoneRecorder.js index d4fef6c..fb8f099 100644 --- a/src/libs/MicrophoneRecorder.js +++ b/src/libs/MicrophoneRecorder.js @@ -99,7 +99,8 @@ export class MicrophoneRecorder { } } - stopRecording() { + stopRecording(onStop) { + onStopCallback = onStop || onStopCallback; if (mediaRecorder && mediaRecorder.state !== 'inactive') { mediaRecorder.stop()