diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2021-05-26 16:40:24 +0300 |
---|---|---|
committer | Marco Ambrosini <marcoambrosini@pm.me> | 2021-06-11 10:24:43 +0300 |
commit | 8adcd5afd2b9cfa597b49784d645c28471ce52c9 (patch) | |
tree | 29d64d76711fafecffe1c260f702f8a8caff051f /src | |
parent | be7b78d081076e88491aca2e38b17d5c07c2d336 (diff) |
Kill media stream at the end of recording
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/NewMessageForm/AudioRecorder/AudioRecorder.vue | 1 |
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 |