Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Ambrosini <marcoambrosini@pm.me>2021-05-26 16:40:24 +0300
committerMarco Ambrosini <marcoambrosini@pm.me>2021-06-11 10:24:43 +0300
commit8adcd5afd2b9cfa597b49784d645c28471ce52c9 (patch)
tree29d64d76711fafecffe1c260f702f8a8caff051f /src/components/NewMessageForm
parentbe7b78d081076e88491aca2e38b17d5c07c2d336 (diff)
Kill media stream at the end of recording
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src/components/NewMessageForm')
-rw-r--r--src/components/NewMessageForm/AudioRecorder/AudioRecorder.vue1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/NewMessageForm/AudioRecorder/AudioRecorder.vue b/src/components/NewMessageForm/AudioRecorder/AudioRecorder.vue
index 75ba26823..f65c9d6a5 100644
--- a/src/components/NewMessageForm/AudioRecorder/AudioRecorder.vue
+++ b/src/components/NewMessageForm/AudioRecorder/AudioRecorder.vue
@@ -235,6 +235,7 @@ export default {
* Generate the file
*/
generateFile() {
+ this.audioStream.getTracks().forEach(track => track.stop())
if (!this.aborted) {
this.blob = new Blob(this.chunks, { 'type': 'audio/mpeg-3' })
// Convert blob to file