Procházet zdrojové kódy

feat: Exposes the max enabled resolution in the connection stats popover. (#7278)

* feat: Exposes the max enabled resolution in the connection stats popover.
* deps: lib-jitsi-meet@latest
master
George Politis před 5 roky
rodič
revize
e4ce3928dc
Žádný účet není propojen s e-mailovou adresou tvůrce revize

+ 1
- 0
lang/main.json Zobrazit soubor

@@ -110,6 +110,7 @@
110 110
         "localaddress_plural": "Local addresses:",
111 111
         "localport": "Local port:",
112 112
         "localport_plural": "Local ports:",
113
+        "maxEnabledResolution": "send max",
113 114
         "more": "Show more",
114 115
         "packetloss": "Packet loss:",
115 116
         "quality": {

+ 1
- 1
package.json Zobrazit soubor

@@ -56,7 +56,7 @@
56 56
     "jquery-i18next": "1.2.1",
57 57
     "js-md5": "0.6.1",
58 58
     "jwt-decode": "2.2.0",
59
-    "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#cd008d726f1f57562eb5d8e6a3cd91c7e69826a0",
59
+    "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#304b0a2b4e18216d792f499c74fc24bc3849303e",
60 60
     "libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d",
61 61
     "lodash": "4.17.13",
62 62
     "moment": "2.19.4",

+ 2
- 0
react/features/connection-indicator/components/web/ConnectionIndicator.js Zobrazit soubor

@@ -342,6 +342,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, State> {
342 342
             bridgeCount,
343 343
             e2eRtt,
344 344
             framerate,
345
+            maxEnabledResolution,
345 346
             packetLoss,
346 347
             region,
347 348
             resolution,
@@ -358,6 +359,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, State> {
358 359
                 e2eRtt = { e2eRtt }
359 360
                 framerate = { framerate }
360 361
                 isLocalVideo = { this.props.isLocalVideo }
362
+                maxEnabledResolution = { maxEnabledResolution }
361 363
                 onShowMore = { this._onToggleShowMore }
362 364
                 packetLoss = { packetLoss }
363 365
                 region = { region }

+ 14
- 2
react/features/connection-stats/components/ConnectionStatsTable.js Zobrazit soubor

@@ -57,6 +57,12 @@ type Props = {
57 57
      */
58 58
     isLocalVideo: boolean,
59 59
 
60
+    /**
61
+     * The send-side max enabled resolution (aka the highest layer that is not
62
+     * suspended on the send-side).
63
+     */
64
+    maxEnabledResolution: number,
65
+
60 66
     /**
61 67
      * Callback to invoke when the show additional stats link is clicked.
62 68
      */
@@ -380,8 +386,8 @@ class ConnectionStatsTable extends Component<Props> {
380 386
      * @returns {ReactElement}
381 387
      */
382 388
     _renderResolution() {
383
-        const { resolution, t } = this.props;
384
-        const resolutionString = Object.keys(resolution || {})
389
+        const { resolution, maxEnabledResolution, t } = this.props;
390
+        let resolutionString = Object.keys(resolution || {})
385 391
             .map(ssrc => {
386 392
                 const { width, height } = resolution[ssrc];
387 393
 
@@ -389,6 +395,12 @@ class ConnectionStatsTable extends Component<Props> {
389 395
             })
390 396
             .join(', ') || 'N/A';
391 397
 
398
+        if (maxEnabledResolution && maxEnabledResolution < 720) {
399
+            const maxEnabledResolutionTitle = t('connectionindicator.maxEnabledResolution');
400
+
401
+            resolutionString += ` (${maxEnabledResolutionTitle} ${maxEnabledResolution}p)`;
402
+        }
403
+
392 404
         return (
393 405
             <tr>
394 406
                 <td>

Načítá se…
Zrušit
Uložit