Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1211)

Unified Diff: webrtc/api/rtcstatscollector.cc

Issue 2597963002: RTCIceCandidateStats.transportId added and collected. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/api/rtcstatscollector.cc
diff --git a/webrtc/api/rtcstatscollector.cc b/webrtc/api/rtcstatscollector.cc
index cf97057c1b6884595618b3083beeacad5727f93d..29d558a87cf552eaaeb05975dc6faadbf66c0564 100644
--- a/webrtc/api/rtcstatscollector.cc
+++ b/webrtc/api/rtcstatscollector.cc
@@ -265,6 +265,10 @@ const std::string& ProduceIceCandidateStats(
candidate_stats.reset(new RTCLocalIceCandidateStats(id, timestamp_us));
else
candidate_stats.reset(new RTCRemoteIceCandidateStats(id, timestamp_us));
+ if (!candidate.transport_name().empty()) {
Taylor Brandstetter 2016/12/22 19:28:31 Using the transport_name on the candidate isn't re
hbos 2016/12/23 14:25:17 Done.
+ candidate_stats->transport_id = RTCTransportStatsIDFromTransportChannel(
+ candidate.transport_name(), candidate.component());
+ }
candidate_stats->ip = candidate.address().ipaddr().ToString();
candidate_stats->port = static_cast<int32_t>(candidate.address().port());
candidate_stats->protocol = candidate.protocol();

Powered by Google App Engine
This is Rietveld 408576698