瀏覽代碼

feat(config) Added option to remove Show More link from GSM popover

* Whitelisted enableSaveLogs

* Added config option to hide Show More on GSM popover

* Updated config option
j8
robertpin 4 年之前
父節點
當前提交
24503c3bd3
沒有連結到貢獻者的電子郵件帳戶。

+ 4
- 0
config.js 查看文件

@@ -101,6 +101,10 @@ var config = {
101 101
     // about the call.
102 102
     // enableSaveLogs: false,
103 103
 
104
+    // Enabling this will hide the "Show More" link in the GSM popover that can be
105
+    // used to display more statistics about the connection (IP, Port, protocol, etc).
106
+    // disableShowMoreStats: true,
107
+
104 108
     // Enabling this will run the lib-jitsi-meet noise detection module which will
105 109
     // notify the user if there is noise, other than voice, coming from the current
106 110
     // selected microphone. The purpose it to let the user know that the input could

+ 2
- 0
react/features/base/config/configWhitelist.js 查看文件

@@ -96,6 +96,7 @@ export default [
96 96
     'disableResponsiveTiles',
97 97
     'disableRtx',
98 98
     'disableShortcuts',
99
+    'disableShowMoreStats',
99 100
     'disableSimulcast',
100 101
     'disableThirdPartyRequests',
101 102
     'disableTileView',
@@ -112,6 +113,7 @@ export default [
112 113
     'enableLipSync',
113 114
     'enableOpusRed',
114 115
     'enableRemb',
116
+    'enableSaveLogs',
115 117
     'enableScreenshotCapture',
116 118
     'enableTalkWhileMuted',
117 119
     'enableNoAudioDetection',

+ 9
- 1
react/features/connection-indicator/components/web/ConnectionIndicator.js 查看文件

@@ -90,6 +90,12 @@ type Props = AbstractProps & {
90 90
      */
91 91
     enableSaveLogs: boolean,
92 92
 
93
+    /**
94
+     * Whether or not should display the "Show More" link in the local video
95
+     * stats table.
96
+     */
97
+    disableShowMoreStats: boolean,
98
+
93 99
     /**
94 100
      * Whether or not clicking the indicator should display a popover for more
95 101
      * details.
@@ -391,6 +397,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, State> {
391 397
                 bridgeCount = { bridgeCount }
392 398
                 codec = { codec }
393 399
                 connectionSummary = { this._getConnectionStatusTip() }
400
+                disableShowMoreStats = { this.props.disableShowMoreStats }
394 401
                 e2eRtt = { e2eRtt }
395 402
                 enableSaveLogs = { this.props.enableSaveLogs }
396 403
                 framerate = { framerate }
@@ -448,7 +455,8 @@ export function _mapStateToProps(state: Object, ownProps: Props) {
448 455
         = typeof participantId === 'undefined' ? getLocalParticipant(state) : getParticipantById(state, participantId);
449 456
     const props = {
450 457
         _connectionStatus: participant?.connectionStatus,
451
-        enableSaveLogs: state['features/base/config'].enableSaveLogs
458
+        enableSaveLogs: state['features/base/config'].enableSaveLogs,
459
+        disableShowMoreStats: state['features/base/config'].disableShowMoreStats
452 460
     };
453 461
 
454 462
     if (conference) {

+ 7
- 2
react/features/connection-stats/components/ConnectionStatsTable.js 查看文件

@@ -59,6 +59,11 @@ type Props = {
59 59
      */
60 60
     enableSaveLogs: boolean,
61 61
 
62
+    /**
63
+     * Whether or not should display the "Show More" link.
64
+     */
65
+    disableShowMoreStats: boolean,
66
+
62 67
     /**
63 68
      * The endpoint id of this client.
64 69
      */
@@ -170,7 +175,7 @@ class ConnectionStatsTable extends Component<Props> {
170 175
      * @returns {ReactElement}
171 176
      */
172 177
     render() {
173
-        const { isLocalVideo, enableSaveLogs } = this.props;
178
+        const { isLocalVideo, enableSaveLogs, disableShowMoreStats } = this.props;
174 179
 
175 180
         return (
176 181
             <div
@@ -179,7 +184,7 @@ class ConnectionStatsTable extends Component<Props> {
179 184
                 { this._renderStatistics() }
180 185
                 <div className = 'connection-actions'>
181 186
                     { isLocalVideo && enableSaveLogs ? this._renderSaveLogs() : null}
182
-                    { this._renderShowMoreLink() }
187
+                    { !disableShowMoreStats && this._renderShowMoreLink() }
183 188
                 </div>
184 189
                 { this.props.shouldShowMore ? this._renderAdditionalStats() : null }
185 190
             </div>

Loading…
取消
儲存