Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(remote-control): when multistream is enabled
Hristo Terezov627027b167e3
diff --git a/react/features/remote-control/subscriber.js b/react/features/remote-control/subscriber.jsindex c36b299326..3287ac462f 100644--- a/react/features/remote-control/subscriber.js+++ b/react/features/remote-control/subscriber.js@@ -1,5 +1,10 @@// @flow+import {+ getParticipantById,+ getVirtualScreenshareParticipantByOwnerId,+ getVirtualScreenshareParticipantOwnerId+} from '../base/participants';import { StateListenerRegistry } from '../base/redux';import { resume, pause } from './actions';@@ -17,6 +22,22 @@ StateListenerRegistry.register(return undefined;}+ const participant = getParticipantById(state, participantId);++ if (participant?.isVirtualScreenshareParticipant) {+ // multistream support is enabled and the user has selected the desktop sharing thumbnail.+ const id = getVirtualScreenshareParticipantOwnerId(participantId);++ return id === controlled;+ }++ const virtualParticipant = getVirtualScreenshareParticipantByOwnerId(state, participantId);++ if (virtualParticipant) { // multistream is enabled and the user has selected the camera thumbnail.+ return false;++ }+return controlled === participantId;},/* listener */ (isControlledParticipantOnStage, { dispatch }) => {