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(remotecontrol): Pin the controlled participant only on remote control permissions granted
hristoterezov1f7c5529e9c9
diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.jsindex 4248a6badf..21b780f3b4 100644--- a/modules/UI/videolayout/RemoteVideo.js+++ b/modules/UI/videolayout/RemoteVideo.js@@ -246,9 +246,12 @@ RemoteVideo.prototype._requestRemoteControlPermissions = function () {{user: this.user.getDisplayName()|| interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME});- let pinnedId = this.VideoLayout.getPinnedId();- if(pinnedId !== this.id) {- this.VideoLayout.handleVideoThumbClicked(this.id);+ if(result === true) {//the remote control permissions has been granted+ // pin the controlled participant+ let pinnedId = this.VideoLayout.getPinnedId();+ if(pinnedId !== this.id) {+ this.VideoLayout.handleVideoThumbClicked(this.id);+ }}}, error => {logger.error(error);