From 24c11524212965e713c8166ff716ee60d6ada13a Mon Sep 17 00:00:00 2001 From: Dinesh Kumar Date: Tue, 14 Jun 2022 17:25:51 +0530 Subject: [PATCH] stopRecording function issues fixes in recordrtc --- RecordRTC.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RecordRTC.js b/RecordRTC.js index 179e1df..632e40e 100644 --- a/RecordRTC.js +++ b/RecordRTC.js @@ -109,6 +109,7 @@ function RecordRTC(mediaStream, config) { if (!mediaRecorder) { warningLog(); + callback(); return; } @@ -118,6 +119,7 @@ function RecordRTC(mediaStream, config) { setTimeout(function() { stopRecording(callback); }, 1); + callback(); return; }