mirror of
https://github.com/open-webui/open-webui
synced 2025-01-30 14:29:55 +00:00
fix: voice note mic not stopping issue
This commit is contained in:
parent
f0179270e2
commit
466eea1a4c
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user