Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(external_api) Expose command for toggling background dlg
hmuresancafefecea596
diff --git a/modules/API/API.js b/modules/API/API.jsindex 031206e895..24c454430d 100644--- a/modules/API/API.js+++ b/modules/API/API.js@@ -13,6 +13,7 @@ import {setSubject} from '../../react/features/base/conference';import { overwriteConfig, getWhitelistedJSON } from '../../react/features/base/config';+import { toggleDialog } from '../../react/features/base/dialog/actions';import { parseJWTFromURLParams } from '../../react/features/base/jwt';import JitsiMeetJS, { JitsiRecordingConstants } from '../../react/features/base/lib-jitsi-meet';import { MEDIA_TYPE } from '../../react/features/base/media';@@ -50,6 +51,7 @@ import { playSharedVideo, stopSharedVideo } from '../../react/features/shared-viimport { toggleTileView, setTileView } from '../../react/features/video-layout';import { muteAllParticipants } from '../../react/features/video-menu/actions';import { setVideoQuality } from '../../react/features/video-quality';+import VirtualBackgroundDialog from '../../react/features/virtual-background/components/VirtualBackgroundDialog';import { getJitsiMeetTransport } from '../transport';import { API_ID, ENDPOINT_TEXT_MESSAGE_NAME } from './constants';@@ -421,6 +423,9 @@ function initCommands() {const whitelistedConfig = getWhitelistedJSON('config', config);APP.store.dispatch(overwriteConfig(whitelistedConfig));+ },+ 'toggle-virtual-background': () => {+ APP.store.dispatch(toggleDialog(VirtualBackgroundDialog));}};transport.on('event', ({ data, name }) => {diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.jsindex 04dc688ea8..8152485c81 100644--- a/modules/API/external/external_api.js+++ b/modules/API/external/external_api.js@@ -60,6 +60,7 @@ const commands = {toggleRaiseHand: 'toggle-raise-hand',toggleShareScreen: 'toggle-share-screen',toggleTileView: 'toggle-tile-view',+ toggleVirtualBackgroundDialog: 'toggle-virtual-background',toggleVideo: 'toggle-video'};