diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-06-11 21:28:18 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-06-14 14:12:31 +0300 |
commit | df63caa17b27b7eea4f09f2ea70a70c5036602d2 (patch) | |
tree | 5a806e1f8a444a0986007f22f15fc2714c92703c | |
parent | 9603be4d3b2fba5be805be2fd5f4ad4273509708 (diff) |
Set explicitly the media to be analyzed in screens
This is just for tidyness, as stats for screen streams only contain data
for video, and thus in practice this change makes no difference.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r-- | src/utils/webrtc/analyzers/ParticipantAnalyzer.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/webrtc/analyzers/ParticipantAnalyzer.js b/src/utils/webrtc/analyzers/ParticipantAnalyzer.js index 8b28af680..02151d828 100644 --- a/src/utils/webrtc/analyzers/ParticipantAnalyzer.js +++ b/src/utils/webrtc/analyzers/ParticipantAnalyzer.js @@ -257,12 +257,18 @@ ParticipantAnalyzer.prototype = { this._senderScreenPeerConnectionAnalyzer.setPeerConnection(this._screenPeer.pc, PEER_DIRECTION.SENDER) this._senderScreenPeerConnectionAnalyzer.on('change:connectionQualityVideo', this._handleConnectionQualityScreenChangeBound) + + this._senderScreenPeerConnectionAnalyzer.setAnalysisEnabledAudio(false) + this._senderScreenPeerConnectionAnalyzer.setAnalysisEnabledVideo(true) } if (this._callParticipantModel) { this._receiverScreenPeerConnectionAnalyzer.setPeerConnection(this._screenPeer.pc, PEER_DIRECTION.RECEIVER) this._receiverScreenPeerConnectionAnalyzer.on('change:connectionQualityVideo', this._handleConnectionQualityScreenChangeBound) + + this._receiverScreenPeerConnectionAnalyzer.setAnalysisEnabledAudio(false) + this._receiverScreenPeerConnectionAnalyzer.setAnalysisEnabledVideo(true) } }, |