summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-08-25 17:42:35 +0200
committerGitHub <noreply@github.com>2021-08-25 17:42:35 +0200
commit4e28a510619a79974096485a6720f963b0e236b5 (patch)
treea4779ca5ea0f7359c1197ba3ffe21a799d0035be
parent88934fa75b06b9806cc05e4bf21e28b412fb7d4a (diff)
parent2b9edfb09582c6fbe9b5f89937f741b7d538c64f (diff)
Merge pull request #6118 from nextcloud/fix-connection-quality-warning-still-shown-after-media-is-stopped
Fix connection quality warning still shown after media is stopped
-rw-r--r--src/utils/webrtc/analyzers/PeerConnectionAnalyzer.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/webrtc/analyzers/PeerConnectionAnalyzer.js b/src/utils/webrtc/analyzers/PeerConnectionAnalyzer.js
index cb1424a97..d18774cd8 100644
--- a/src/utils/webrtc/analyzers/PeerConnectionAnalyzer.js
+++ b/src/utils/webrtc/analyzers/PeerConnectionAnalyzer.js
@@ -215,6 +215,9 @@ PeerConnectionAnalyzer.prototype = {
this._peerConnection = peerConnection
this._peerDirection = peerDirection
+ this._setConnectionQualityAudio(CONNECTION_QUALITY.UNKNOWN)
+ this._setConnectionQualityVideo(CONNECTION_QUALITY.UNKNOWN)
+
if (this._peerConnection) {
this._peerConnection.addEventListener('iceconnectionstatechange', this._handleIceConnectionStateChangedBound)
this._handleIceConnectionStateChangedBound()