Add statistics gathering for packet loss.

Adds a class used to classify whether packet loss events are a single packet or multiple packets as well as how many packets have been lost. Also exposes a new function in the RtpRtcp interface to retrieve these statistics.

BUG=

Review URL: https://codereview.webrtc.org/1198853004

Cr-Commit-Position: refs/heads/master@{#9568}
This commit is contained in:
bcornell
2015-07-10 18:10:05 -07:00
committed by Commit bot
parent 35b72fbceb
commit 30409b4dca
11 changed files with 459 additions and 0 deletions

View File

@ -430,6 +430,14 @@ class RtpRtcp : public Module {
StreamDataCounters* rtp_counters,
StreamDataCounters* rtx_counters) const = 0;
/*
* Get packet loss statistics for the RTP stream.
*/
virtual void GetRtpPacketLossStats(
bool outgoing,
uint32_t ssrc,
struct RtpPacketLossStats* loss_stats) const = 0;
/*
* Get received RTCP sender info
*