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(api) expose follow me method (#9486)

Avram Tudor0507f8c2f9f0
diff --git a/modules/API/API.js b/modules/API/API.js
index 1535bee745..19c2ad7f10 100644
--- a/modules/API/API.js
+++ b/modules/API/API.js
@@ -9,6 +9,7 @@ import {
import {
getCurrentConference,
sendTones,
+ setFollowMe,
setPassword,
setSubject
} from '../../react/features/base/conference';
@@ -153,6 +154,17 @@ function initCommands() {
APP.store.dispatch(sendTones(tones, duration, pause));
},
+ 'set-follow-me': value => {
+ logger.debug('Set follow me command received');
+
+ if (value) {
+ sendAnalytics(createApiEvent('follow.me.set'));
+ } else {
+ sendAnalytics(createApiEvent('follow.me.unset'));
+ }
+
+ APP.store.dispatch(setFollowMe(value));
+ },
'set-large-video-participant': participantId => {
logger.debug('Set large video participant command received');
sendAnalytics(createApiEvent('largevideo.participant.set'));
diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js
index 309972b017..cbcd52bfe4 100644
--- a/modules/API/external/external_api.js
+++ b/modules/API/external/external_api.js
@@ -44,6 +44,7 @@ const commands = {
sendChatMessage: 'send-chat-message',
sendEndpointTextMessage: 'send-endpoint-text-message',
sendTones: 'send-tones',
+ setFollowMe: 'set-follow-me',
setLargeVideoParticipant: 'set-large-video-participant',
setTileView: 'set-tile-view',
setVideoQuality: 'set-video-quality',