From 467b3220d64d915be2a8d8e67ab51aa6f3e9a84f Mon Sep 17 00:00:00 2001 From: yanas Date: Thu, 19 Jun 2014 16:40:54 +0300 Subject: [PATCH] Adds some active speaker logs. --- videolayout.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/videolayout.js b/videolayout.js index fa67d7dbc..634801067 100644 --- a/videolayout.js +++ b/videolayout.js @@ -59,7 +59,8 @@ var VideoLayout = (function (my) { }; /** - * Checks if removed video is currently displayed and tries to display another one instead. + * Checks if removed video is currently displayed and tries to display + * another one instead. * @param removedVideoSrc src stream identifier of the video. */ my.checkChangeLargeVideo = function(removedVideoSrc) { @@ -67,7 +68,9 @@ var VideoLayout = (function (my) { // this is currently displayed as large // pick the last visible video in the row // if nobody else is left, this picks the local video - var pick = $('#remoteVideos>span[id!="mixedstream"]:visible:last>video').get(0); + var pick + = $('#remoteVideos>span[id!="mixedstream"]:visible:last>video') + .get(0); if (!pick) { console.info("Last visible video no longer exists"); @@ -523,6 +526,8 @@ var VideoLayout = (function (my) { * disabled */ my.enableActiveSpeaker = function(resourceJid, isEnable) { + console.log("Enable active speaker", resourceJid, isEnable); + var videoSpanId = null; if (resourceJid === Strophe.getResourceFromJid(connection.emuc.myroomjid))