Просмотр исходного кода

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

master
hristoterezov 9 лет назад
Родитель
Сommit
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);

Загрузка…
Отмена
Сохранить