Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat (external-api) Add command for setting tile view mode

hmuresan07f16a7a51d5
diff --git a/modules/API/API.js b/modules/API/API.js
index 2f3d1bff8c..b64d06e6b2 100644
--- a/modules/API/API.js
+++ b/modules/API/API.js
@@ -39,7 +39,7 @@ import {
import { toggleLobbyMode } from '../../react/features/lobby/actions.web';
import { RECORDING_TYPES } from '../../react/features/recording/constants';
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 { setVideoQuality } from '../../react/features/video-quality';
import { getJitsiMeetTransport } from '../transport';
@@ -209,6 +209,9 @@ function initCommands() {
APP.store.dispatch(toggleTileView());
},
+ 'set-tile-view': enabled => {
+ APP.store.dispatch(setTileView(enabled));
+ },
'video-hangup': (showFeedbackDialog = true) => {
sendAnalytics(createApiEvent('video.hangup'));
APP.conference.hangup(showFeedbackDialog);
diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js
index a66b42ff4e..cc7a19fbec 100644
--- a/modules/API/external/external_api.js
+++ b/modules/API/external/external_api.js
@@ -44,6 +44,7 @@ const commands = {
sendEndpointTextMessage: 'send-endpoint-text-message',
sendTones: 'send-tones',
setLargeVideoParticipant: 'set-large-video-participant',
+ setTileView: 'set-tile-view',
setVideoQuality: 'set-video-quality',
startRecording: 'start-recording',
stopRecording: 'stop-recording',