Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat: Exposes the max enabled resolution in the connection stats popover. (#7278)
George Politise4ce3928dcaa
diff --git a/lang/main.json b/lang/main.jsonindex e20ef57789..7ba137976b 100644--- a/lang/main.json+++ b/lang/main.json@@ -110,6 +110,7 @@"localaddress_plural": "Local addresses:","localport": "Local port:","localport_plural": "Local ports:",+ "maxEnabledResolution": "send max","more": "Show more","packetloss": "Packet loss:","quality": {diff --git a/package.json b/package.jsonindex 68f51a3856..51d98c46c8 100644--- a/package.json+++ b/package.json@@ -56,7 +56,7 @@"jquery-i18next": "1.2.1","js-md5": "0.6.1","jwt-decode": "2.2.0",- "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#cd008d726f1f57562eb5d8e6a3cd91c7e69826a0",+ "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#304b0a2b4e18216d792f499c74fc24bc3849303e","libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d","lodash": "4.17.13","moment": "2.19.4",diff --git a/react/features/connection-indicator/components/web/ConnectionIndicator.js b/react/features/connection-indicator/components/web/ConnectionIndicator.jsindex 5f92f52bbd..f4b88fc70f 100644--- a/react/features/connection-indicator/components/web/ConnectionIndicator.js+++ b/react/features/connection-indicator/components/web/ConnectionIndicator.js@@ -342,6 +342,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, State> {bridgeCount,e2eRtt,framerate,+ maxEnabledResolution,packetLoss,region,resolution,@@ -358,6 +359,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, State> {e2eRtt = { e2eRtt }framerate = { framerate }isLocalVideo = { this.props.isLocalVideo }+ maxEnabledResolution = { maxEnabledResolution }onShowMore = { this._onToggleShowMore }packetLoss = { packetLoss }region = { region }diff --git a/react/features/connection-stats/components/ConnectionStatsTable.js b/react/features/connection-stats/components/ConnectionStatsTable.jsindex 581515b28c..b5fc8a6a30 100644--- a/react/features/connection-stats/components/ConnectionStatsTable.js+++ b/react/features/connection-stats/components/ConnectionStatsTable.js@@ -57,6 +57,12 @@ type Props = {*/isLocalVideo: boolean,+ /**+ * The send-side max enabled resolution (aka the highest layer that is not+ * suspended on the send-side).+ */+ maxEnabledResolution: number,+/*** Callback to invoke when the show additional stats link is clicked.*/@@ -380,8 +386,8 @@ class ConnectionStatsTable extends Component<Props> {* @returns {ReactElement}*/_renderResolution() {- const { resolution, t } = this.props;- const resolutionString = Object.keys(resolution || {})+ const { resolution, maxEnabledResolution, t } = this.props;+ let resolutionString = Object.keys(resolution || {}).map(ssrc => {const { width, height } = resolution[ssrc];@@ -389,6 +395,12 @@ class ConnectionStatsTable extends Component<Props> {}).join(', ') || 'N/A';+ if (maxEnabledResolution && maxEnabledResolution < 720) {+ const maxEnabledResolutionTitle = t('connectionindicator.maxEnabledResolution');++ resolutionString += ` (${maxEnabledResolutionTitle} ${maxEnabledResolution}p)`;+ }+return (<tr><td>