fix: voice note mic not stopping issue
This commit is contained in:
1 parent
f0179270e2
commit
466eea1a4c
1 file changed
+7
@@ -269,6 +269,13 @@
|
||||
await mediaRecorder.stop();
|
||||
}
|
||||
clearInterval(durationCounter);
|
||||
|
||||
if (stream) {
|
||||
const tracks = stream.getTracks();
|
||||
tracks.forEach((track) => track.stop());
|
||||
}
|
||||
|
||||
stream = null;
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user