RTCIceCandidatePairStats.[total/current]RoundTripTime collected.
Collected in accordance with the spec: https://w3c.github.io/webrtc-stats/#candidatepair-dict* totalRoundTripTime is collected as the sum of rtt measurements, it was previously not collected. currentRoundTripTime is collected as the latest rtt measurement, it was previously collected as a smoothed value, which was incorrect. Connection is updated to collect these values which are surfaced through ConnectionInfo. BUG=webrtc:7062, webrtc:7204 Review-Url: https://codereview.webrtc.org/2719523002 Cr-Commit-Position: refs/heads/master@{#16905}
This commit is contained in:
@ -372,7 +372,8 @@ class RTCStatsReportVerifier {
|
||||
verifier.TestMemberIsUndefined(candidate_pair.readable);
|
||||
verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_sent);
|
||||
verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_received);
|
||||
verifier.TestMemberIsUndefined(candidate_pair.total_round_trip_time);
|
||||
verifier.TestMemberIsNonNegative<double>(
|
||||
candidate_pair.total_round_trip_time);
|
||||
verifier.TestMemberIsNonNegative<double>(
|
||||
candidate_pair.current_round_trip_time);
|
||||
if (is_selected_pair) {
|
||||
|
||||
Reference in New Issue
Block a user