소스 검색

Fixes problem when unpinning user and returning to active speaker video.

j8
Yana Stamcheva 11 년 전
부모
커밋
cef26315c3
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5
    3
      videolayout.js

+ 5
- 3
videolayout.js 파일 보기

@@ -169,14 +169,16 @@ var VideoLayout = (function (my) {
169 169
             oldContainer.removeClass("videoContainerFocused");
170 170
         }
171 171
 
172
-        // Unlock current focused.
172
+        // Unlock current focused. 
173 173
         if (focusedVideoSrc === videoSrc)
174 174
         {
175 175
             focusedVideoSrc = null;
176
+            var activeSpeakerVideo = null;
176 177
             // Enable the currently set active speaker.
177 178
             if (currentActiveSpeaker) {
178
-                var activeSpeakerVideo = document
179
-                    .getElementById('participant_' + currentActiveSpeaker);
179
+                activeSpeakerVideo
180
+                    = $('#participant_' + currentActiveSpeaker + '>video')
181
+                        .get(0);
180 182
 
181 183
                 if (activeSpeakerVideo)
182 184
                     VideoLayout.updateLargeVideo(activeSpeakerVideo.src, 1);

Loading…
취소
저장