Browse Source

fix(remotecontrol): Pin the controlled participant only on remote control permissions granted

j8
hristoterezov 8 years ago
parent
commit
1f7c5529e9
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      modules/UI/videolayout/RemoteVideo.js

+ 6
- 3
modules/UI/videolayout/RemoteVideo.js View File

246
             {user: this.user.getDisplayName()
246
             {user: this.user.getDisplayName()
247
                 || interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME}
247
                 || interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME}
248
         );
248
         );
249
-        let pinnedId = this.VideoLayout.getPinnedId();
250
-        if(pinnedId !== this.id) {
251
-            this.VideoLayout.handleVideoThumbClicked(this.id);
249
+        if(result === true) {//the remote control permissions has been granted
250
+            // pin the controlled participant
251
+            let pinnedId = this.VideoLayout.getPinnedId();
252
+            if(pinnedId !== this.id) {
253
+                this.VideoLayout.handleVideoThumbClicked(this.id);
254
+            }
252
         }
255
         }
253
     }, error => {
256
     }, error => {
254
         logger.error(error);
257
         logger.error(error);

Loading…
Cancel
Save