Add field to counters for when first rtp/rtcp packet is sent/received.
Use this time for histogram statistics (send/receive bitrates, sent/received rtcp fir/nack packets/min). BUG=crbug/419657 R=mflodman@webrtc.org, stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/32219004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7910 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -316,6 +316,10 @@ RTCPReceiver::IncomingRTCPPacket(RTCPPacketInformation& rtcpPacketInformation,
|
||||
|
||||
_lastReceived = _clock->TimeInMilliseconds();
|
||||
|
||||
if (packet_type_counter_.first_packet_time_ms == -1) {
|
||||
packet_type_counter_.first_packet_time_ms = _lastReceived;
|
||||
}
|
||||
|
||||
RTCPUtility::RTCPPacketTypes pktType = rtcpParser->Begin();
|
||||
while (pktType != RTCPUtility::kRtcpNotValidCode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user