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 2657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2668 // based on received packets. | 2668 // based on received packets. |
2669 RtcpStatistics statistics; | 2669 RtcpStatistics statistics; |
2670 StreamStatistician* statistician = | 2670 StreamStatistician* statistician = |
2671 rtp_receive_statistics_->GetStatistician(rtp_receiver_->SSRC()); | 2671 rtp_receive_statistics_->GetStatistician(rtp_receiver_->SSRC()); |
2672 if (statistician) { | 2672 if (statistician) { |
2673 statistician->GetStatistics(&statistics, | 2673 statistician->GetStatistics(&statistics, |
2674 _rtpRtcpModule->RTCP() == RtcpMode::kOff); | 2674 _rtpRtcpModule->RTCP() == RtcpMode::kOff); |
2675 } | 2675 } |
2676 | 2676 |
2677 stats.fractionLost = statistics.fraction_lost; | 2677 stats.fractionLost = statistics.fraction_lost; |
2678 stats.cumulativeLost = statistics.cumulative_lost; | 2678 stats.cumulativeLost = statistics.packets_lost; |
2679 stats.extendedMax = statistics.extended_max_sequence_number; | 2679 stats.extendedMax = statistics.extended_highest_sequence_number; |
2680 stats.jitterSamples = statistics.jitter; | 2680 stats.jitterSamples = statistics.jitter; |
2681 | 2681 |
2682 // --- RTT | 2682 // --- RTT |
2683 stats.rttMs = GetRTT(true); | 2683 stats.rttMs = GetRTT(true); |
2684 | 2684 |
2685 // --- Data counters | 2685 // --- Data counters |
2686 | 2686 |
2687 size_t bytesSent(0); | 2687 size_t bytesSent(0); |
2688 uint32_t packetsSent(0); | 2688 uint32_t packetsSent(0); |
2689 size_t bytesReceived(0); | 2689 size_t bytesReceived(0); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3161 int64_t min_rtt = 0; | 3161 int64_t min_rtt = 0; |
3162 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != | 3162 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != |
3163 0) { | 3163 0) { |
3164 return 0; | 3164 return 0; |
3165 } | 3165 } |
3166 return rtt; | 3166 return rtt; |
3167 } | 3167 } |
3168 | 3168 |
3169 } // namespace voe | 3169 } // namespace voe |
3170 } // namespace webrtc | 3170 } // namespace webrtc |
OLD | NEW |