blob: 365937474f78cee0c6c8d4f0cac61edf0895aac0 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
pwestin@webrtc.orgf6bb77a2012-01-24 17:16:59 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_
12#define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_
13
pwestin@webrtc.org26f8d9c2012-01-19 15:53:09 +000014#include <map>
stefan@webrtc.org28a331e2013-09-17 07:49:56 +000015#include <set>
danilchapb8b6fbb2015-12-10 05:05:27 -080016#include <vector>
perkj@webrtc.orgce5990c2012-01-11 13:00:08 +000017
danilchap7c9426c2016-04-14 03:05:31 -070018#include "webrtc/base/criticalsection.h"
asapersson@webrtc.orgcb791412014-12-18 14:30:32 +000019#include "webrtc/base/thread_annotations.h"
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010020#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
pbos@webrtc.orga048d7c2013-05-29 14:27:38 +000021#include "webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h"
22#include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h"
pbos@webrtc.orga048d7c2013-05-29 14:27:38 +000023#include "webrtc/typedefs.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000024
25namespace webrtc {
danilchap59cb2bd2016-08-29 11:08:47 -070026namespace rtcp {
27class TmmbItem;
28} // namespace rtcp
pwestin@webrtc.org741da942011-09-20 13:52:04 +000029
danilchapda161d72016-08-19 07:29:46 -070030class RTCPReceiver {
31 public:
danilchap59cb2bd2016-08-29 11:08:47 -070032 class ModuleRtpRtcp {
33 public:
34 virtual void SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set) = 0;
35 virtual void OnRequestSendReport() = 0;
36 virtual void OnReceivedNack(
37 const std::vector<uint16_t>& nack_sequence_numbers) = 0;
38 virtual void OnReceivedRtcpReportBlocks(
39 const ReportBlockList& report_blocks) = 0;
40
41 protected:
42 virtual ~ModuleRtpRtcp() = default;
43 };
44
danilchapda161d72016-08-19 07:29:46 -070045 RTCPReceiver(Clock* clock,
46 bool receiver_only,
47 RtcpPacketTypeCounterObserver* packet_type_counter_observer,
48 RtcpBandwidthObserver* rtcp_bandwidth_observer,
49 RtcpIntraFrameObserver* rtcp_intra_frame_observer,
50 TransportFeedbackObserver* transport_feedback_observer,
danilchap59cb2bd2016-08-29 11:08:47 -070051 ModuleRtpRtcp* owner);
danilchapda161d72016-08-19 07:29:46 -070052 virtual ~RTCPReceiver();
niklase@google.com470e71d2011-07-07 08:21:25 +000053
danilchap59cb2bd2016-08-29 11:08:47 -070054 bool IncomingPacket(const uint8_t* packet, size_t packet_size);
55
danilchapda161d72016-08-19 07:29:46 -070056 int64_t LastReceived();
57 int64_t LastReceivedReceiverReport() const;
niklase@google.com470e71d2011-07-07 08:21:25 +000058
danilchapda161d72016-08-19 07:29:46 -070059 void SetSsrcs(uint32_t main_ssrc, const std::set<uint32_t>& registered_ssrcs);
60 void SetRemoteSSRC(uint32_t ssrc);
61 uint32_t RemoteSSRC() const;
niklase@google.com470e71d2011-07-07 08:21:25 +000062
danilchapda161d72016-08-19 07:29:46 -070063 int32_t IncomingRTCPPacket(
64 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation,
65 RTCPUtility::RTCPParserV2* rtcpParser);
niklase@google.com470e71d2011-07-07 08:21:25 +000066
danilchapda161d72016-08-19 07:29:46 -070067 void TriggerCallbacksFromRTCPPacket(
68 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation);
niklase@google.com470e71d2011-07-07 08:21:25 +000069
danilchapda161d72016-08-19 07:29:46 -070070 // get received cname
71 int32_t CNAME(uint32_t remoteSSRC, char cName[RTCP_CNAME_SIZE]) const;
niklase@google.com470e71d2011-07-07 08:21:25 +000072
danilchapda161d72016-08-19 07:29:46 -070073 // get received NTP
74 bool NTP(uint32_t* ReceivedNTPsecs,
75 uint32_t* ReceivedNTPfrac,
76 uint32_t* RTCPArrivalTimeSecs,
77 uint32_t* RTCPArrivalTimeFrac,
78 uint32_t* rtcp_timestamp) const;
niklase@google.com470e71d2011-07-07 08:21:25 +000079
danilchapda161d72016-08-19 07:29:46 -070080 bool LastReceivedXrReferenceTimeInfo(RtcpReceiveTimeInfo* info) const;
asapersson@webrtc.org8469f7b2013-10-02 13:15:34 +000081
danilchapda161d72016-08-19 07:29:46 -070082 // get rtt
83 int32_t RTT(uint32_t remoteSSRC,
84 int64_t* RTT,
85 int64_t* avgRTT,
86 int64_t* minRTT,
87 int64_t* maxRTT) const;
niklase@google.com470e71d2011-07-07 08:21:25 +000088
danilchapda161d72016-08-19 07:29:46 -070089 int32_t SenderInfoReceived(RTCPSenderInfo* senderInfo) const;
niklase@google.com470e71d2011-07-07 08:21:25 +000090
danilchapda161d72016-08-19 07:29:46 -070091 void SetRtcpXrRrtrStatus(bool enable);
92 bool GetAndResetXrRrRtt(int64_t* rtt_ms);
asapersson@webrtc.org7d6bd222013-10-31 12:14:34 +000093
danilchapda161d72016-08-19 07:29:46 -070094 // get statistics
95 int32_t StatisticsReceived(std::vector<RTCPReportBlock>* receiveBlocks) const;
perkj@webrtc.orgce5990c2012-01-11 13:00:08 +000096
danilchapda161d72016-08-19 07:29:46 -070097 // Returns true if we haven't received an RTCP RR for several RTCP
98 // intervals, but only triggers true once.
99 bool RtcpRrTimeout(int64_t rtcp_interval_ms);
mflodman@webrtc.org2f225ca2013-01-09 13:54:43 +0000100
danilchapda161d72016-08-19 07:29:46 -0700101 // Returns true if we haven't received an RTCP RR telling the receive side
102 // has not received RTP packets for too long, i.e. extended highest sequence
103 // number hasn't increased for several RTCP intervals. The function only
104 // returns true once until a new RR is received.
105 bool RtcpRrSequenceNumberTimeout(int64_t rtcp_interval_ms);
mflodman@webrtc.org2f225ca2013-01-09 13:54:43 +0000106
danilchap853ecb22016-08-22 08:26:15 -0700107 std::vector<rtcp::TmmbItem> TmmbrReceived() const;
niklase@google.com470e71d2011-07-07 08:21:25 +0000108
danilchapda161d72016-08-19 07:29:46 -0700109 bool UpdateRTCPReceiveInformationTimers();
niklase@google.com470e71d2011-07-07 08:21:25 +0000110
danilchapda161d72016-08-19 07:29:46 -0700111 std::vector<rtcp::TmmbItem> BoundingSet(bool* tmmbr_owner);
niklase@google.com470e71d2011-07-07 08:21:25 +0000112
danilchap853ecb22016-08-22 08:26:15 -0700113 void UpdateTmmbr();
niklase@google.com470e71d2011-07-07 08:21:25 +0000114
danilchapda161d72016-08-19 07:29:46 -0700115 void RegisterRtcpStatisticsCallback(RtcpStatisticsCallback* callback);
116 RtcpStatisticsCallback* GetRtcpStatisticsCallback();
sprang@webrtc.orga6ad6e52013-12-05 09:48:44 +0000117
danilchapda161d72016-08-19 07:29:46 -0700118 protected:
119 RTCPUtility::RTCPCnameInformation* CreateCnameInformation(
120 uint32_t remoteSSRC);
121 RTCPUtility::RTCPCnameInformation* GetCnameInformation(
122 uint32_t remoteSSRC) const;
niklase@google.com470e71d2011-07-07 08:21:25 +0000123
danilchapda161d72016-08-19 07:29:46 -0700124 RTCPHelp::RTCPReceiveInformation* CreateReceiveInformation(
125 uint32_t remoteSSRC);
126 RTCPHelp::RTCPReceiveInformation* GetReceiveInformation(uint32_t remoteSSRC);
niklase@google.com470e71d2011-07-07 08:21:25 +0000127
danilchapda161d72016-08-19 07:29:46 -0700128 void HandleSenderReceiverReport(
129 RTCPUtility::RTCPParserV2& rtcpParser,
130 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
131 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
niklase@google.com470e71d2011-07-07 08:21:25 +0000132
danilchapda161d72016-08-19 07:29:46 -0700133 void HandleReportBlock(const RTCPUtility::RTCPPacket& rtcpPacket,
niklase@google.com470e71d2011-07-07 08:21:25 +0000134 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation,
danilchapda161d72016-08-19 07:29:46 -0700135 uint32_t remoteSSRC)
136 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
niklase@google.com470e71d2011-07-07 08:21:25 +0000137
danilchapda161d72016-08-19 07:29:46 -0700138 void HandleSDES(RTCPUtility::RTCPParserV2& rtcpParser,
139 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
140 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
niklase@google.com470e71d2011-07-07 08:21:25 +0000141
danilchapda161d72016-08-19 07:29:46 -0700142 void HandleSDESChunk(RTCPUtility::RTCPParserV2& rtcpParser)
143 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
144
145 void HandleXrHeader(RTCPUtility::RTCPParserV2& parser,
sprang7dc39f32015-10-13 09:17:48 -0700146 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
danilchapda161d72016-08-19 07:29:46 -0700147 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
niklase@google.com470e71d2011-07-07 08:21:25 +0000148
danilchapda161d72016-08-19 07:29:46 -0700149 void HandleXrReceiveReferenceTime(
150 RTCPUtility::RTCPParserV2& parser,
151 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
152 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
niklase@google.com470e71d2011-07-07 08:21:25 +0000153
danilchapda161d72016-08-19 07:29:46 -0700154 void HandleXrDlrrReportBlock(
155 RTCPUtility::RTCPParserV2& parser,
156 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
157 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
158
159 void HandleXrDlrrReportBlockItem(
160 const RTCPUtility::RTCPPacket& packet,
161 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
162 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
163
164 void HandleXRVOIPMetric(
165 RTCPUtility::RTCPParserV2& rtcpParser,
166 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
167 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
168
169 void HandleNACK(RTCPUtility::RTCPParserV2& rtcpParser,
170 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
171 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
172
173 void HandleNACKItem(const RTCPUtility::RTCPPacket& rtcpPacket,
174 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
175 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
176
177 void HandleBYE(RTCPUtility::RTCPParserV2& rtcpParser)
178 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
179
180 void HandlePLI(RTCPUtility::RTCPParserV2& rtcpParser,
181 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
182 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
183
184 void HandleSLI(RTCPUtility::RTCPParserV2& rtcpParser,
185 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
186 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
187
188 void HandleSLIItem(const RTCPUtility::RTCPPacket& rtcpPacket,
189 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
190 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
191
192 void HandleRPSI(RTCPUtility::RTCPParserV2& rtcpParser,
193 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
194 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
195
196 void HandlePsfbApp(RTCPUtility::RTCPParserV2& rtcpParser,
197 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
198 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
199
200 void HandleREMBItem(RTCPUtility::RTCPParserV2& rtcpParser,
201 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
202 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
203
204 void HandleIJ(RTCPUtility::RTCPParserV2& rtcpParser,
205 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
206 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
207
208 void HandleIJItem(const RTCPUtility::RTCPPacket& rtcpPacket,
209 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
210 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
211
212 void HandleTMMBR(RTCPUtility::RTCPParserV2& rtcpParser,
sprang7dc39f32015-10-13 09:17:48 -0700213 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
danilchapda161d72016-08-19 07:29:46 -0700214 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
niklase@google.com470e71d2011-07-07 08:21:25 +0000215
danilchapda161d72016-08-19 07:29:46 -0700216 void HandleTMMBRItem(RTCPHelp::RTCPReceiveInformation& receiveInfo,
niklase@google.com470e71d2011-07-07 08:21:25 +0000217 const RTCPUtility::RTCPPacket& rtcpPacket,
danilchapda161d72016-08-19 07:29:46 -0700218 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation,
219 uint32_t senderSSRC)
220 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
niklase@google.com470e71d2011-07-07 08:21:25 +0000221
danilchapda161d72016-08-19 07:29:46 -0700222 void HandleTMMBN(RTCPUtility::RTCPParserV2& rtcpParser,
sprang7dc39f32015-10-13 09:17:48 -0700223 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
danilchapda161d72016-08-19 07:29:46 -0700224 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
niklase@google.com470e71d2011-07-07 08:21:25 +0000225
danilchapda161d72016-08-19 07:29:46 -0700226 void HandleSR_REQ(RTCPUtility::RTCPParserV2& rtcpParser,
227 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
228 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
niklase@google.com470e71d2011-07-07 08:21:25 +0000229
danilchapda161d72016-08-19 07:29:46 -0700230 void HandleTMMBNItem(RTCPHelp::RTCPReceiveInformation& receiveInfo,
231 const RTCPUtility::RTCPPacket& rtcpPacket)
232 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
233
234 void HandleFIR(RTCPUtility::RTCPParserV2& rtcpParser,
235 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
236 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
237
238 void HandleFIRItem(RTCPHelp::RTCPReceiveInformation* receiveInfo,
239 const RTCPUtility::RTCPPacket& rtcpPacket,
240 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
241 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
242
243 void HandleAPP(RTCPUtility::RTCPParserV2& rtcpParser,
244 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
245 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
246
247 void HandleAPPItem(RTCPUtility::RTCPParserV2& rtcpParser,
248 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
249 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
250
251 void HandleTransportFeedback(
252 RTCPUtility::RTCPParserV2* rtcp_parser,
253 RTCPHelp::RTCPPacketInformation* rtcp_packet_information)
254 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
Erik Språng6b8d3552015-09-24 15:06:57 +0200255
pwestin@webrtc.org26f8d9c2012-01-19 15:53:09 +0000256 private:
danilchapda161d72016-08-19 07:29:46 -0700257 typedef std::map<uint32_t, RTCPHelp::RTCPReceiveInformation*> ReceivedInfoMap;
asapersson@webrtc.orgcb791412014-12-18 14:30:32 +0000258 // RTCP report block information mapped by remote SSRC.
259 typedef std::map<uint32_t, RTCPHelp::RTCPReportBlockInformation*>
260 ReportBlockInfoMap;
261 // RTCP report block information map mapped by source SSRC.
262 typedef std::map<uint32_t, ReportBlockInfoMap> ReportBlockMap;
263
264 RTCPHelp::RTCPReportBlockInformation* CreateOrGetReportBlockInformation(
danilchapda161d72016-08-19 07:29:46 -0700265 uint32_t remote_ssrc,
266 uint32_t source_ssrc)
267 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
asapersson@webrtc.orgcb791412014-12-18 14:30:32 +0000268 RTCPHelp::RTCPReportBlockInformation* GetReportBlockInformation(
danilchapda161d72016-08-19 07:29:46 -0700269 uint32_t remote_ssrc,
270 uint32_t source_ssrc) const
271 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
asapersson@webrtc.orgcb791412014-12-18 14:30:32 +0000272
Peter Boströmfe7a80c2015-04-23 17:53:17 +0200273 Clock* const _clock;
274 const bool receiver_only_;
asapersson@webrtc.orgcb791412014-12-18 14:30:32 +0000275 int64_t _lastReceived;
danilchap59cb2bd2016-08-29 11:08:47 -0700276 ModuleRtpRtcp& _rtpRtcp;
niklase@google.com470e71d2011-07-07 08:21:25 +0000277
danilchap7c9426c2016-04-14 03:05:31 -0700278 rtc::CriticalSection _criticalSectionFeedbacks;
mflodman@webrtc.org96abda02015-02-25 13:50:10 +0000279 RtcpBandwidthObserver* const _cbRtcpBandwidthObserver;
280 RtcpIntraFrameObserver* const _cbRtcpIntraFrameObserver;
Erik Språng6b8d3552015-09-24 15:06:57 +0200281 TransportFeedbackObserver* const _cbTransportFeedbackObserver;
niklase@google.com470e71d2011-07-07 08:21:25 +0000282
danilchap7c9426c2016-04-14 03:05:31 -0700283 rtc::CriticalSection _criticalSectionRTCPReceiver;
sprang7dc39f32015-10-13 09:17:48 -0700284 uint32_t main_ssrc_ GUARDED_BY(_criticalSectionRTCPReceiver);
285 uint32_t _remoteSSRC GUARDED_BY(_criticalSectionRTCPReceiver);
286 std::set<uint32_t> registered_ssrcs_ GUARDED_BY(_criticalSectionRTCPReceiver);
niklase@google.com470e71d2011-07-07 08:21:25 +0000287
pwestin@webrtc.org26f8d9c2012-01-19 15:53:09 +0000288 // Received send report
289 RTCPSenderInfo _remoteSenderInfo;
290 // when did we receive the last send report
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000291 uint32_t _lastReceivedSRNTPsecs;
292 uint32_t _lastReceivedSRNTPfrac;
niklase@google.com470e71d2011-07-07 08:21:25 +0000293
asapersson@webrtc.org8469f7b2013-10-02 13:15:34 +0000294 // Received XR receive time report.
295 RtcpReceiveTimeInfo _remoteXRReceiveTimeInfo;
296 // Time when the report was received.
297 uint32_t _lastReceivedXRNTPsecs;
298 uint32_t _lastReceivedXRNTPfrac;
asapersson@webrtc.org7d6bd222013-10-31 12:14:34 +0000299 // Estimated rtt, zero when there is no valid estimate.
Danil Chapovalovc1e55c72016-03-09 15:14:35 +0100300 bool xr_rrtr_status_ GUARDED_BY(_criticalSectionRTCPReceiver);
pkasting@chromium.org16825b12015-01-12 21:51:21 +0000301 int64_t xr_rr_rtt_ms_;
asapersson@webrtc.org8469f7b2013-10-02 13:15:34 +0000302
pwestin@webrtc.org26f8d9c2012-01-19 15:53:09 +0000303 // Received report blocks.
asapersson@webrtc.orgcb791412014-12-18 14:30:32 +0000304 ReportBlockMap _receivedReportBlockMap
305 GUARDED_BY(_criticalSectionRTCPReceiver);
stefan@webrtc.orgb5865072013-02-01 14:33:42 +0000306 ReceivedInfoMap _receivedInfoMap;
asapersson@webrtc.orgcb791412014-12-18 14:30:32 +0000307 std::map<uint32_t, RTCPUtility::RTCPCnameInformation*> _receivedCnameMap;
niklase@google.com470e71d2011-07-07 08:21:25 +0000308
mflodman@webrtc.org2f225ca2013-01-09 13:54:43 +0000309 // The last time we received an RTCP RR.
310 int64_t _lastReceivedRrMs;
311
asapersson@webrtc.orgcb791412014-12-18 14:30:32 +0000312 // The time we last received an RTCP RR telling we have successfully
mflodman@webrtc.org2f225ca2013-01-09 13:54:43 +0000313 // delivered RTP packet to the remote side.
314 int64_t _lastIncreasedSequenceNumberMs;
stefan@webrtc.org8ca8a712013-04-23 16:48:32 +0000315
pbos@webrtc.orga28a91d2015-02-17 14:45:08 +0000316 RtcpStatisticsCallback* stats_callback_ GUARDED_BY(_criticalSectionFeedbacks);
asapersson@webrtc.org8098e072014-02-19 11:59:02 +0000317
pbos@webrtc.org1d0fa5d2015-02-19 12:47:00 +0000318 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_;
asapersson@webrtc.org8098e072014-02-19 11:59:02 +0000319 RtcpPacketTypeCounter packet_type_counter_;
asapersson@webrtc.org2dd31342014-10-29 12:42:30 +0000320
321 RTCPUtility::NackStats nack_stats_;
Erik Språng6b8d3552015-09-24 15:06:57 +0200322
323 size_t num_skipped_packets_;
324 int64_t last_skipped_packets_warning_;
niklase@google.com470e71d2011-07-07 08:21:25 +0000325};
pbos@webrtc.orgd900e8b2013-07-03 15:12:26 +0000326} // namespace webrtc
danilchapda161d72016-08-19 07:29:46 -0700327#endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_