diff --git a/lang/main.json b/lang/main.json index fd9978a7c7..357b93ed9a 100644 --- a/lang/main.json +++ b/lang/main.json @@ -192,7 +192,8 @@ "transport": "Transport:", "transport_plural": "Transports:", "bandwidth": "Estimated bandwidth:", - "na": "Come back here for connection information once the conference starts" + "na": "Come back here for connection information once the conference starts", + "direct": " (direct)" }, "notify": { "disconnected": "disconnected", diff --git a/modules/UI/videolayout/ConnectionIndicator.js b/modules/UI/videolayout/ConnectionIndicator.js index 70b2a990e6..802e1ae6cf 100644 --- a/modules/UI/videolayout/ConnectionIndicator.js +++ b/modules/UI/videolayout/ConnectionIndicator.js @@ -198,6 +198,9 @@ ConnectionIndicator.prototype.generateText = function () { } } + // All of the transports should be either P2P or JVB + const isP2P = this.transport.length ? this.transport[0].p2p : false; + var local_address_key = "connectionindicator.localaddress"; var remote_address_key = "connectionindicator.remoteaddress"; var localTransport = @@ -243,8 +246,13 @@ ConnectionIndicator.prototype.generateText = function () { JSON.stringify({count: data.transportType.length}) + "'>" + "" - + ConnectionIndicator.getStringFromArray(data.transportType) - + ""; + + ConnectionIndicator.getStringFromArray(data.transportType); + // Append (direct) to indicate the P2P type of transport + if (isP2P) { + transport += ""; + } + // Close "type" column and end table row + transport += ""; }