feat(api) expose follow me method (#9486)
This commit is contained in:
parent
df1561c198
commit
0507f8c2f9
|
@ -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'));
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue