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
path: root/src
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-09-29 12:27:00 +0300
committerGitHub <noreply@github.com>2021-09-29 12:27:00 +0300
commit8e60febd89c72b26ae1cad018a25994efa9f208f (patch)
tree6d663eaac8002ff10c2ff75aa435a282f738f31c /src
parentae4f0b1833ea776d885acb2989d52194ed8a40ab (diff)
parent2475632cea2444dbd7e60c194317156d0feac06a (diff)
Merge pull request #6283 from nextcloud/fix-stopped-speaking-events-still-emitted-once-started-to-speak-again
Fix "stopped speaking" events still emitted once started to speak again
Diffstat (limited to 'src')
-rw-r--r--src/utils/webrtc/simplewebrtc/localmedia.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/webrtc/simplewebrtc/localmedia.js b/src/utils/webrtc/simplewebrtc/localmedia.js
index 6424c1807..f9a3f6d20 100644
--- a/src/utils/webrtc/simplewebrtc/localmedia.js
+++ b/src/utils/webrtc/simplewebrtc/localmedia.js
@@ -793,6 +793,10 @@ LocalMedia.prototype._setupAudioMonitor = function(stream, harkOptions) {
})
audio.on('speaking', function() {
+ if (timeout) {
+ clearTimeout(timeout)
+ }
+
self._speaking = true
if (self._audioEnabled) {