fix: voice note mic not stopping issue

This commit is contained in:
Timothy J. Baek 2024-10-14 14:53:01 -07:00
parent f0179270e2
commit 466eea1a4c

View File

@ -269,6 +269,13 @@
await mediaRecorder.stop(); await mediaRecorder.stop();
} }
clearInterval(durationCounter); clearInterval(durationCounter);
if (stream) {
const tracks = stream.getTracks();
tracks.forEach((track) => track.stop());
}
stream = null;
}; };
</script> </script>