Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Yana Stamchevacef26315c3d3
diff --git a/videolayout.js b/videolayout.js
index 0f81aa255b..fb25816ba3 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);