ソースを参照

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

j8
hristoterezov 8年前
コミット
1f7c5529e9
1個のファイルの変更6行の追加3行の削除
  1. 6
    3
      modules/UI/videolayout/RemoteVideo.js

+ 6
- 3
modules/UI/videolayout/RemoteVideo.js ファイルの表示

@@ -246,9 +246,12 @@ RemoteVideo.prototype._requestRemoteControlPermissions = function () {
246 246
             {user: this.user.getDisplayName()
247 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 256
     }, error => {
254 257
         logger.error(error);

読み込み中…
キャンセル
保存