소스 검색

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,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
         }

Loading…
취소
저장