From 34433a363b83f9a452a0dd40d15764d5aaab7cc7 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 25 Jul 2019 14:01:04 +0200 Subject: [PATCH] Call sound.stop_recording upon audio stream stop so we won't have hanging streams with no clients connected --- platypush/backend/http/static/js/plugins/sound/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/backend/http/static/js/plugins/sound/index.js b/platypush/backend/http/static/js/plugins/sound/index.js index 2a5b8e96..5e2230b4 100644 --- a/platypush/backend/http/static/js/plugins/sound/index.js +++ b/platypush/backend/http/static/js/plugins/sound/index.js @@ -14,8 +14,9 @@ Vue.component('sound', { this.recording = true; }, - stopRecording: function() { + stopRecording: async function() { this.recording = false; + await request('sound.stop_recording') }, }, });