Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
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 <[email protected]>
  • Loading branch information
danxuliu authored and backportbot[bot] committed Jun 14, 2021
commit a668afa2ea4d60cb387251beaaf3ea31a475a789
6 changes: 6 additions & 0 deletions src/utils/webrtc/analyzers/ParticipantAnalyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
},

Expand Down