Kaynağa Gözat

Merge pull request #1459 from jitsi/move_p2p

fix: P2P address indication
j8
Дамян Минков 8 yıl önce
ebeveyn
işleme
0d7cb63978

+ 1
- 1
lang/main.json Dosyayı Görüntüle

@@ -196,7 +196,7 @@
196 196
         "transport_plural": "Transports:",
197 197
         "bandwidth": "Estimated bandwidth:",
198 198
         "na": "Come back here for connection information once the conference starts",
199
-        "direct": " (direct)"
199
+        "peer_to_peer": " (p2p)"
200 200
     },
201 201
     "notify": {
202 202
         "disconnected": "disconnected",

+ 9
- 8
modules/UI/videolayout/ConnectionIndicator.js Dosyayı Görüntüle

@@ -215,8 +215,14 @@ ConnectionIndicator.prototype.generateText = function () {
215 215
                 remote_address_key + "' data-i18n-options='" +
216 216
                     JSON.stringify({count: data.remoteIP.length})
217 217
                         + "'></span></td><td> " +
218
-                ConnectionIndicator.getStringFromArray(data.remoteIP) +
219
-                "</td></tr>";
218
+                ConnectionIndicator.getStringFromArray(data.remoteIP);
219
+
220
+            // Append (p2p) to indicate the P2P type of transport
221
+            if (isP2P) {
222
+                transport
223
+                    += "<span data-i18n='connectionindicator.peer_to_peer'>";
224
+            }
225
+            transport += "</td></tr>";
220 226
 
221 227
             var key_remote = "connectionindicator.remoteport",
222 228
                 key_local = "connectionindicator.localport";
@@ -247,12 +253,7 @@ ConnectionIndicator.prototype.generateText = function () {
247 253
                 + "'></span></td>" +
248 254
                 "<td>"
249 255
                     + ConnectionIndicator.getStringFromArray(data.transportType);
250
-            // Append (direct) to indicate the P2P type of transport
251
-            if (isP2P) {
252
-                transport += "<span data-i18n='connectionindicator.direct'>";
253
-            }
254
-            // Close "type" column and end table row
255
-            transport += "</td></tr>";
256
+                + "</td></tr>";
256 257
 
257 258
         }
258 259
 

Loading…
İptal
Kaydet