feat (external-api) Add command for setting tile view mode
This commit is contained in:
parent
0e7bde2ff0
commit
07f16a7a51
|
@ -39,7 +39,7 @@ import {
|
||||||
import { toggleLobbyMode } from '../../react/features/lobby/actions.web';
|
import { toggleLobbyMode } from '../../react/features/lobby/actions.web';
|
||||||
import { RECORDING_TYPES } from '../../react/features/recording/constants';
|
import { RECORDING_TYPES } from '../../react/features/recording/constants';
|
||||||
import { getActiveSession } from '../../react/features/recording/functions';
|
import { getActiveSession } from '../../react/features/recording/functions';
|
||||||
import { toggleTileView } from '../../react/features/video-layout';
|
import { toggleTileView, setTileView } from '../../react/features/video-layout';
|
||||||
import { muteAllParticipants } from '../../react/features/video-menu/actions';
|
import { muteAllParticipants } from '../../react/features/video-menu/actions';
|
||||||
import { setVideoQuality } from '../../react/features/video-quality';
|
import { setVideoQuality } from '../../react/features/video-quality';
|
||||||
import { getJitsiMeetTransport } from '../transport';
|
import { getJitsiMeetTransport } from '../transport';
|
||||||
|
@ -209,6 +209,9 @@ function initCommands() {
|
||||||
|
|
||||||
APP.store.dispatch(toggleTileView());
|
APP.store.dispatch(toggleTileView());
|
||||||
},
|
},
|
||||||
|
'set-tile-view': enabled => {
|
||||||
|
APP.store.dispatch(setTileView(enabled));
|
||||||
|
},
|
||||||
'video-hangup': (showFeedbackDialog = true) => {
|
'video-hangup': (showFeedbackDialog = true) => {
|
||||||
sendAnalytics(createApiEvent('video.hangup'));
|
sendAnalytics(createApiEvent('video.hangup'));
|
||||||
APP.conference.hangup(showFeedbackDialog);
|
APP.conference.hangup(showFeedbackDialog);
|
||||||
|
|
|
@ -44,6 +44,7 @@ const commands = {
|
||||||
sendEndpointTextMessage: 'send-endpoint-text-message',
|
sendEndpointTextMessage: 'send-endpoint-text-message',
|
||||||
sendTones: 'send-tones',
|
sendTones: 'send-tones',
|
||||||
setLargeVideoParticipant: 'set-large-video-participant',
|
setLargeVideoParticipant: 'set-large-video-participant',
|
||||||
|
setTileView: 'set-tile-view',
|
||||||
setVideoQuality: 'set-video-quality',
|
setVideoQuality: 'set-video-quality',
|
||||||
startRecording: 'start-recording',
|
startRecording: 'start-recording',
|
||||||
stopRecording: 'stop-recording',
|
stopRecording: 'stop-recording',
|
||||||
|
|
Loading…
Reference in New Issue