From cef26315c3d323262252c0d0752508098b065496 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Thu, 3 Jul 2014 09:28:25 +0200 Subject: [PATCH] Fixes problem when unpinning user and returning to active speaker video. --- videolayout.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/videolayout.js b/videolayout.js index 0f81aa255..fb25816ba 100644 --- a/videolayout.js +++ b/videolayout.js @@ -169,14 +169,16 @@ var VideoLayout = (function (my) { oldContainer.removeClass("videoContainerFocused"); } - // Unlock current focused. + // Unlock current focused. if (focusedVideoSrc === videoSrc) { focusedVideoSrc = null; + var activeSpeakerVideo = null; // Enable the currently set active speaker. if (currentActiveSpeaker) { - var activeSpeakerVideo = document - .getElementById('participant_' + currentActiveSpeaker); + activeSpeakerVideo + = $('#participant_' + currentActiveSpeaker + '>video') + .get(0); if (activeSpeakerVideo) VideoLayout.updateLargeVideo(activeSpeakerVideo.src, 1);