feat(api) expose follow me method (#9486)

This commit is contained in:
Avram Tudor 2021-07-06 14:37:31 +03:00 committed by GitHub
parent df1561c198
commit 0507f8c2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import {
import { import {
getCurrentConference, getCurrentConference,
sendTones, sendTones,
setFollowMe,
setPassword, setPassword,
setSubject setSubject
} from '../../react/features/base/conference'; } from '../../react/features/base/conference';
@ -153,6 +154,17 @@ function initCommands() {
APP.store.dispatch(sendTones(tones, duration, pause)); 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 => { 'set-large-video-participant': participantId => {
logger.debug('Set large video participant command received'); logger.debug('Set large video participant command received');
sendAnalytics(createApiEvent('largevideo.participant.set')); sendAnalytics(createApiEvent('largevideo.participant.set'));

View File

@ -44,6 +44,7 @@ const commands = {
sendChatMessage: 'send-chat-message', sendChatMessage: 'send-chat-message',
sendEndpointTextMessage: 'send-endpoint-text-message', sendEndpointTextMessage: 'send-endpoint-text-message',
sendTones: 'send-tones', sendTones: 'send-tones',
setFollowMe: 'set-follow-me',
setLargeVideoParticipant: 'set-large-video-participant', setLargeVideoParticipant: 'set-large-video-participant',
setTileView: 'set-tile-view', setTileView: 'set-tile-view',
setVideoQuality: 'set-video-quality', setVideoQuality: 'set-video-quality',