|
|
@@ -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>
|