|
@@ -95,21 +95,47 @@ ConnectionIndicator.prototype.generateText = function () {
|
95
|
95
|
return `${width}x${height}`;
|
96
|
96
|
}).join(', ') || 'N/A';
|
97
|
97
|
|
98
|
|
- var result = "<table style='width:100%'>" +
|
99
|
|
- "<tr>" +
|
100
|
|
- "<td><span data-i18n='connectionindicator.bitrate'>" +
|
101
|
|
- translate("connectionindicator.bitrate") + "</span></td>" +
|
102
|
|
- "<td><span class='jitsipopover__green'>↓</span>" +
|
103
|
|
- downloadBitrate + " <span class='jitsipopover__orange'>↑</span>" +
|
104
|
|
- uploadBitrate + "</td>" +
|
105
|
|
- "</tr><tr>" +
|
106
|
|
- "<td><span data-i18n='connectionindicator.packetloss'>" +
|
107
|
|
- translate("connectionindicator.packetloss") + "</span></td>" +
|
108
|
|
- "<td>" + packetLoss + "</td>" +
|
109
|
|
- "</tr><tr>" +
|
110
|
|
- "<td><span data-i18n='connectionindicator.resolution'>" +
|
111
|
|
- translate("connectionindicator.resolution") + "</span></td>" +
|
112
|
|
- "<td>" + resolutionStr + "</td></tr></table>";
|
|
98
|
+ let headerKey = 'connectionindicator.header';
|
|
99
|
+ let result = (
|
|
100
|
+ `<table style='width:100%'>
|
|
101
|
+ <tr>
|
|
102
|
+ <td>
|
|
103
|
+ <span class="jitsipopover__title"
|
|
104
|
+ data-i18n="">${translate(headerKey)}</span>
|
|
105
|
+ </td>
|
|
106
|
+ </tr>
|
|
107
|
+ <tr>
|
|
108
|
+ <td>
|
|
109
|
+ <span data-i18n='connectionindicator.bitrate'>
|
|
110
|
+ ${translate("connectionindicator.bitrate")}
|
|
111
|
+ </span>
|
|
112
|
+ </td>
|
|
113
|
+ <td>
|
|
114
|
+ <span class='jitsipopover__green'>↓</span>
|
|
115
|
+ ${downloadBitrate}
|
|
116
|
+ <span class='jitsipopover__orange'>↑</span>
|
|
117
|
+ ${uploadBitrate}
|
|
118
|
+ </td>
|
|
119
|
+ </tr>
|
|
120
|
+ <tr>
|
|
121
|
+ <td>
|
|
122
|
+ <span data-i18n='connectionindicator.packetloss'>
|
|
123
|
+ ${translate("connectionindicator.packetloss")}
|
|
124
|
+ </span>
|
|
125
|
+ </td>
|
|
126
|
+ <td>${packetLoss}</td>
|
|
127
|
+ </tr>
|
|
128
|
+ <tr>
|
|
129
|
+ <td>
|
|
130
|
+ <span data-i18n='connectionindicator.resolution'>
|
|
131
|
+ ${translate("connectionindicator.resolution")}
|
|
132
|
+ </span>
|
|
133
|
+ </td>
|
|
134
|
+ <td>
|
|
135
|
+ ${resolutionStr}
|
|
136
|
+ </td>
|
|
137
|
+ </tr>
|
|
138
|
+ </table>`);
|
113
|
139
|
|
114
|
140
|
if(this.videoContainer.videoSpanId == "localVideoContainer") {
|
115
|
141
|
result += "<a class=\"jitsipopover__showmore link\" " +
|
|
@@ -232,7 +258,7 @@ ConnectionIndicator.prototype.generateText = function () {
|
232
|
258
|
|
233
|
259
|
result += transport + "</table>";
|
234
|
260
|
}
|
235
|
|
-
|
|
261
|
+
|
236
|
262
|
return result;
|
237
|
263
|
};
|
238
|
264
|
|