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

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

j8
Yana Stamcheva 11 лет назад
Родитель
Сommit
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);

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