Kaynağa Gözat

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

j8
Yana Stamcheva 11 yıl önce
ebeveyn
işleme
cef26315c3
1 değiştirilmiş dosya ile 5 ekleme ve 3 silme
  1. 5
    3
      videolayout.js

+ 5
- 3
videolayout.js Dosyayı Görüntüle

@@ -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…
İptal
Kaydet