diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-08-25 18:42:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 18:42:35 +0300 |
commit | 4e28a510619a79974096485a6720f963b0e236b5 (patch) | |
tree | a4779ca5ea0f7359c1197ba3ffe21a799d0035be /src | |
parent | 88934fa75b06b9806cc05e4bf21e28b412fb7d4a (diff) | |
parent | 2b9edfb09582c6fbe9b5f89937f741b7d538c64f (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
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/webrtc/analyzers/PeerConnectionAnalyzer.js | 3 |
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() |