Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Updates transport type.

damenchoe5cefcce7060
diff --git a/lang/main.json b/lang/main.json
index b93b873f1d..a8988c7844 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -189,6 +189,7 @@
"remoteaddress": "Remote address:",
"remoteaddress_plural": "Remote addresses:",
"transport": "Transport:",
+ "transport_plural": "Transports:",
"bandwidth": "Estimated bandwidth:",
"na": "Come back here for connection information once the conference starts"
},
diff --git a/modules/UI/videolayout/ConnectionIndicator.js b/modules/UI/videolayout/ConnectionIndicator.js
index ce8021ba86..771db813ba 100644
--- a/modules/UI/videolayout/ConnectionIndicator.js
+++ b/modules/UI/videolayout/ConnectionIndicator.js
@@ -150,7 +150,12 @@ ConnectionIndicator.prototype.generateText = function () {
"data-i18n='connectionindicator.address'></span></td>" +
"<td> N/A</td></tr>";
} else {
- var data = {remoteIP: [], localIP:[], remotePort:[], localPort:[]};
+ var data = {
+ remoteIP: [],
+ localIP:[],
+ remotePort:[],
+ localPort:[],
+ transportType:[]};
for(i = 0; i < this.transport.length; i++) {
var ip = ConnectionIndicator.getIP(this.transport[i].ip);
var port = ConnectionIndicator.getPort(this.transport[i].ip);
@@ -173,6 +178,10 @@ ConnectionIndicator.prototype.generateText = function () {
if(data.localPort.indexOf(localPort) == -1) {
data.localPort.push(localPort);
}
+
+ if(data.transportType.indexOf(this.transport[i].type) == -1) {
+ data.transportType.push(this.transport[i].type);
+ }
}
var local_address_key = "connectionindicator.localaddress";
@@ -215,9 +224,13 @@ ConnectionIndicator.prototype.generateText = function () {
transport += "</td></tr>";
transport += localTransport + "</td></tr>";
transport +="<tr>" +
- "<td><span data-i18n='connectionindicator.transport'>" +
- "</span></td>" +
- "<td>" + this.transport[0].type + "</td></tr>";
+ "<td><span data-i18n='connectionindicator.transport' "
+ + " data-i18n-options='" +
+ JSON.stringify({count: data.transportType.length})
+ + "'></span></td>" +
+ "<td>"
+ + ConnectionIndicator.getStringFromArray(data.transportType)
+ + "</td></tr>";
}