瀏覽代碼

Update variable name to pinnedId.

j8
damencho 9 年之前
父節點
當前提交
27607e8754
共有 1 個檔案被更改,包括 2 行新增4 行删除
  1. 2
    4
      modules/UI/videolayout/VideoLayout.js

+ 2
- 4
modules/UI/videolayout/VideoLayout.js 查看文件

215
             newId = currentDominantSpeaker;
215
             newId = currentDominantSpeaker;
216
         else // Otherwise select last visible video
216
         else // Otherwise select last visible video
217
             newId = this.electLastVisibleVideo();
217
             newId = this.electLastVisibleVideo();
218
-        }
219
 
218
 
220
         this.updateLargeVideo(newId);
219
         this.updateLargeVideo(newId);
221
     },
220
     },
982
         // (pinned remote video) use its video type,
981
         // (pinned remote video) use its video type,
983
         // if not then use default type - large video
982
         // if not then use default type - large video
984
         if (!show) {
983
         if (!show) {
985
-            if(focusedVideoResourceJid)
986
-                containerTypeToShow = this.getRemoteVideoType(
987
-                    focusedVideoResourceJid);
984
+            if(pinnedId)
985
+                containerTypeToShow = this.getRemoteVideoType(pinnedId);
988
             else
986
             else
989
                 containerTypeToShow = VIDEO_CONTAINER_TYPE;
987
                 containerTypeToShow = VIDEO_CONTAINER_TYPE;
990
         }
988
         }

Loading…
取消
儲存