Add killswitch for RTX receive stats
guarding the change in receive stats behind the WebRTC-Stats-RtxReceiveStats field trial which acts as a killswitch. BUG=webrtc:15096 Change-Id: I475a2ce4fe4bddd454aa6477f8818384696c007b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/304160 Reviewed-by: Henrik Boström <hbos@webrtc.org> Commit-Queue: Philipp Hancke <phancke@microsoft.com> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40005}
This commit is contained in:
parent
9dfb531f38
commit
9ffd697a88
@ -568,7 +568,10 @@ VideoReceiveStreamInterface::Stats VideoReceiveStream2::GetStats() const {
|
||||
rtp_receive_statistics_->GetStatistician(rtx_ssrc());
|
||||
if (rtx_statistician) {
|
||||
stats.total_bitrate_bps += rtx_statistician->BitrateReceived();
|
||||
stats.rtx_rtp_stats = rtx_statistician->GetStats();
|
||||
// TODO(bugs.webrtc.org/15096): remove kill-switch after rollout.
|
||||
if (!call_->trials().IsDisabled("WebRTC-Stats-RtxReceiveStats")) {
|
||||
stats.rtx_rtp_stats = rtx_statistician->GetStats();
|
||||
}
|
||||
}
|
||||
}
|
||||
return stats;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user