浏览代码

Update variable name to pinnedId.

master
damencho 9 年前
父节点
当前提交
27607e8754
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2
    4
      modules/UI/videolayout/VideoLayout.js

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

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

正在加载...
取消
保存