|
@@ -14,6 +14,7 @@ import { parseJWTFromURLParams } from '../../react/features/base/jwt';
|
14
|
14
|
import { setE2EEKey } from '../../react/features/e2ee';
|
15
|
15
|
import { invite } from '../../react/features/invite';
|
16
|
16
|
import { toggleTileView } from '../../react/features/video-layout';
|
|
17
|
+import { setVideoQuality } from '../../react/features/video-quality';
|
17
|
18
|
import { getJitsiMeetTransport } from '../transport';
|
18
|
19
|
|
19
|
20
|
import { API_ID, ENDPOINT_TEXT_MESSAGE_NAME } from './constants';
|
|
@@ -171,6 +172,11 @@ function initCommands() {
|
171
|
172
|
'e2ee-key': key => {
|
172
|
173
|
logger.debug('Set E2EE key command received');
|
173
|
174
|
APP.store.dispatch(setE2EEKey(key));
|
|
175
|
+ },
|
|
176
|
+ 'set-video-quality': frameHeight => {
|
|
177
|
+ logger.debug('Set video quality command received');
|
|
178
|
+ sendAnalytics(createApiEvent('set.video.quality'));
|
|
179
|
+ APP.store.dispatch(setVideoQuality(frameHeight));
|
174
|
180
|
}
|
175
|
181
|
};
|
176
|
182
|
transport.on('event', ({ data, name }) => {
|