浏览代码

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

master
hristoterezov 8 年前
父节点
当前提交
1f7c5529e9
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6
    3
      modules/UI/videolayout/RemoteVideo.js

+ 6
- 3
modules/UI/videolayout/RemoteVideo.js 查看文件

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);

正在加载...
取消
保存