OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 2655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2666 // based on received packets. | 2666 // based on received packets. |
2667 RtcpStatistics statistics; | 2667 RtcpStatistics statistics; |
2668 StreamStatistician* statistician = | 2668 StreamStatistician* statistician = |
2669 rtp_receive_statistics_->GetStatistician(rtp_receiver_->SSRC()); | 2669 rtp_receive_statistics_->GetStatistician(rtp_receiver_->SSRC()); |
2670 if (statistician) { | 2670 if (statistician) { |
2671 statistician->GetStatistics(&statistics, | 2671 statistician->GetStatistics(&statistics, |
2672 _rtpRtcpModule->RTCP() == RtcpMode::kOff); | 2672 _rtpRtcpModule->RTCP() == RtcpMode::kOff); |
2673 } | 2673 } |
2674 | 2674 |
2675 stats.fractionLost = statistics.fraction_lost; | 2675 stats.fractionLost = statistics.fraction_lost; |
2676 stats.cumulativeLost = statistics.cumulative_lost; | 2676 stats.cumulativeLost = statistics.packets_lost; |
2677 stats.extendedMax = statistics.extended_max_sequence_number; | 2677 stats.extendedMax = statistics.extended_highest_sequence_number; |
2678 stats.jitterSamples = statistics.jitter; | 2678 stats.jitterSamples = statistics.jitter; |
2679 | 2679 |
2680 // --- RTT | 2680 // --- RTT |
2681 stats.rttMs = GetRTT(true); | 2681 stats.rttMs = GetRTT(true); |
2682 | 2682 |
2683 // --- Data counters | 2683 // --- Data counters |
2684 | 2684 |
2685 size_t bytesSent(0); | 2685 size_t bytesSent(0); |
2686 uint32_t packetsSent(0); | 2686 uint32_t packetsSent(0); |
2687 size_t bytesReceived(0); | 2687 size_t bytesReceived(0); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3159 int64_t min_rtt = 0; | 3159 int64_t min_rtt = 0; |
3160 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != | 3160 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != |
3161 0) { | 3161 0) { |
3162 return 0; | 3162 return 0; |
3163 } | 3163 } |
3164 return rtt; | 3164 return rtt; |
3165 } | 3165 } |
3166 | 3166 |
3167 } // namespace voe | 3167 } // namespace voe |
3168 } // namespace webrtc | 3168 } // namespace webrtc |
OLD | NEW |