diff --git a/simple-demos/audio-recording.html b/simple-demos/audio-recording.html index 38b20de3..c31d5597 100644 --- a/simple-demos/audio-recording.html +++ b/simple-demos/audio-recording.html @@ -180,7 +180,7 @@

Simple Audio Recording using RecordRTC

btnStartRecording.disabled = false; if(microphone) { - microphone.stop(); + microphone.getTracks().forEach( t => t.stop());(); microphone = null; }