feat(follow-me): Adds iframeAPI to activate recorder follow me. (#15134)

* feat(follow-me): Adds iframeAPI to activate recorder follow me.

* squash: suggestion.

Co-authored-by: Hristo Terezov <hristo@jitsi.org>

---------

Co-authored-by: Hristo Terezov <hristo@jitsi.org>
This commit is contained in:
Дамян Минков
2024-09-17 12:18:42 -05:00
committed by GitHub
parent 8d82c20319
commit bc21a462eb

View File

@@ -19,6 +19,7 @@ import {
sendTones,
setAssumedBandwidthBps,
setFollowMe,
setFollowMeRecorder,
setLocalSubject,
setPassword,
setSubject
@@ -322,15 +323,18 @@ function initCommands() {
APP.store.dispatch(setAssumedBandwidthBps(value));
},
'set-follow-me': value => {
'set-follow-me': (value, recorderOnly) => {
if (value) {
sendAnalytics(createApiEvent('follow.me.set'));
sendAnalytics(createApiEvent('follow.me.set', {
recorderOnly
}));
} else {
sendAnalytics(createApiEvent('follow.me.unset'));
sendAnalytics(createApiEvent('follow.me.unset', {
recorderOnly
}));
}
APP.store.dispatch(setFollowMe(value));
APP.store.dispatch(recorderOnly ? setFollowMeRecorder(value) : setFollowMe(value));
},
'set-large-video-participant': (participantId, videoType) => {
const { getState, dispatch } = APP.store;