diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-09-29 12:27:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 12:27:00 +0300 |
commit | 8e60febd89c72b26ae1cad018a25994efa9f208f (patch) | |
tree | 6d663eaac8002ff10c2ff75aa435a282f738f31c /src | |
parent | ae4f0b1833ea776d885acb2989d52194ed8a40ab (diff) | |
parent | 2475632cea2444dbd7e60c194317156d0feac06a (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.js | 4 |
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) { |