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

This commit is contained in:
Yana Stamcheva 2014-07-03 09:28:25 +02:00
parent c0dc84d824
commit cef26315c3
1 changed files with 5 additions and 3 deletions

View File

@ -173,10 +173,12 @@ var VideoLayout = (function (my) {
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);