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

Unified Diff: content/browser/resources/media/peer_connection_update_table.js

Issue 2612063002: webrtc-internals: show ice candidate type (Closed)
Patch Set: Created 3 years, 11 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resources/media/peer_connection_update_table.js
diff --git a/content/browser/resources/media/peer_connection_update_table.js b/content/browser/resources/media/peer_connection_update_table.js
index f3475a8174a938143caca6d76b5a3041533aad20..35b46cac610705cf1a6a58a3e72cb27836decc85 100644
--- a/content/browser/resources/media/peer_connection_update_table.js
+++ b/content/browser/resources/media/peer_connection_update_table.js
@@ -99,6 +99,15 @@ var PeerConnectionUpdateTable = (function() {
return;
}
+ if (update.type === 'onIceCandidate' ||
+ update.type === 'addIceCandidate') {
+ // extract ICE candidate type from the field following typ.
+ var candidateType = update.value.match(
+ /(?: typ )(host|srflx|relay)/)[1];
+ if (candidateType) {
+ type += ' (' + candidateType + ')';
+ }
+ }
row.innerHTML += '<td><details><summary>' + type +
'</summary></details></td>';
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698