From 798781299f07ac73e61ea10a8cfbeea243884084 Mon Sep 17 00:00:00 2001 From: brandtr Date: Wed, 22 Feb 2017 01:20:01 -0800 Subject: [PATCH] Count FlexFEC packets in Call UMA stats. BUG=webrtc:5654 Review-Url: https://codereview.webrtc.org/2684243002 Cr-Commit-Position: refs/heads/master@{#16768} --- webrtc/call/call.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc index 38dca03ff9..e2b1e709ad 100644 --- a/webrtc/call/call.cc +++ b/webrtc/call/call.cc @@ -1220,6 +1220,9 @@ PacketReceiver::DeliveryStatus Call::DeliverRtp(MediaType media_type, } } if (media_type == MediaType::ANY || media_type == MediaType::VIDEO) { + received_bytes_per_second_counter_.Add(static_cast(length)); + // TODO(brandtr): Update here when FlexFEC supports protecting audio. + received_video_bytes_per_second_counter_.Add(static_cast(length)); auto it = flexfec_receive_ssrcs_protection_.find(ssrc); if (it != flexfec_receive_ssrcs_protection_.end()) { it->second->OnRtpPacket(*parsed_packet);