|
|
@@ -115,7 +115,11 @@ import { muteAllParticipants } from '../../react/features/video-menu/actions';
|
|
115
|
115
|
import { setVideoQuality } from '../../react/features/video-quality/actions';
|
|
116
|
116
|
import { getJitsiMeetTransport } from '../transport';
|
|
117
|
117
|
|
|
118
|
|
-import { API_ID, ENDPOINT_TEXT_MESSAGE_NAME } from './constants';
|
|
|
118
|
+import {
|
|
|
119
|
+ API_ID,
|
|
|
120
|
+ ASSUMED_BANDWIDTH_BPS,
|
|
|
121
|
+ ENDPOINT_TEXT_MESSAGE_NAME
|
|
|
122
|
+} from './constants';
|
|
119
|
123
|
|
|
120
|
124
|
const logger = Logger.getLogger(__filename);
|
|
121
|
125
|
|
|
|
@@ -310,6 +314,23 @@ function initCommands() {
|
|
310
|
314
|
|
|
311
|
315
|
APP.store.dispatch(sendTones(tones, duration, pause));
|
|
312
|
316
|
},
|
|
|
317
|
+ 'set-assumed-bandwidth-bps': value => {
|
|
|
318
|
+ logger.debug('Set assumed bandwidth bps command received', value);
|
|
|
319
|
+
|
|
|
320
|
+ if (typeof value !== 'number' || isNaN(value)) {
|
|
|
321
|
+ logger.error('Assumed bandwidth bps must be a number.');
|
|
|
322
|
+
|
|
|
323
|
+ return;
|
|
|
324
|
+ }
|
|
|
325
|
+
|
|
|
326
|
+ const { conference } = APP.store.getState()['features/base/conference'];
|
|
|
327
|
+
|
|
|
328
|
+ if (conference) {
|
|
|
329
|
+ conference.setAssumedBandwidthBps(value < ASSUMED_BANDWIDTH_BPS
|
|
|
330
|
+ ? ASSUMED_BANDWIDTH_BPS
|
|
|
331
|
+ : value);
|
|
|
332
|
+ }
|
|
|
333
|
+ },
|
|
313
|
334
|
'set-follow-me': value => {
|
|
314
|
335
|
logger.debug('Set follow me command received');
|
|
315
|
336
|
|