Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(API)setLargeVideoParticipant ensure stage view

Hristo Terezov80cfb803978d
diff --git a/modules/API/API.js b/modules/API/API.js
index 8a21b28afd..43117d78f8 100644
--- a/modules/API/API.js
+++ b/modules/API/API.js
@@ -342,15 +342,16 @@ function initCommands() {
},
'set-large-video-participant': (participantId, videoType) => {
logger.debug('Set large video participant command received');
+ const { getState, dispatch } = APP.store;
if (!participantId) {
sendAnalytics(createApiEvent('largevideo.participant.set'));
- APP.store.dispatch(selectParticipantInLargeVideo());
+ dispatch(selectParticipantInLargeVideo());
return;
}
- const state = APP.store.getState();
+ const state = getState();
const participant = videoType === VIDEO_TYPE.DESKTOP
? getVirtualScreenshareParticipantByOwnerId(state, participantId)
: getParticipantById(state, participantId);
@@ -361,8 +362,9 @@ function initCommands() {
return;
}
+ dispatch(setTileView(false));
sendAnalytics(createApiEvent('largevideo.participant.set'));
- APP.store.dispatch(selectParticipantInLargeVideo(participant.id));
+ dispatch(selectParticipantInLargeVideo(participant.id));
},
'set-participant-volume': (participantId, volume) => {
APP.store.dispatch(setVolume(participantId, volume));