|
|
@@ -59,7 +59,8 @@ var VideoLayout = (function (my) {
|
|
59
|
59
|
};
|
|
60
|
60
|
|
|
61
|
61
|
/**
|
|
62
|
|
- * Checks if removed video is currently displayed and tries to display another one instead.
|
|
|
62
|
+ * Checks if removed video is currently displayed and tries to display
|
|
|
63
|
+ * another one instead.
|
|
63
|
64
|
* @param removedVideoSrc src stream identifier of the video.
|
|
64
|
65
|
*/
|
|
65
|
66
|
my.checkChangeLargeVideo = function(removedVideoSrc) {
|
|
|
@@ -67,7 +68,9 @@ var VideoLayout = (function (my) {
|
|
67
|
68
|
// this is currently displayed as large
|
|
68
|
69
|
// pick the last visible video in the row
|
|
69
|
70
|
// if nobody else is left, this picks the local video
|
|
70
|
|
- var pick = $('#remoteVideos>span[id!="mixedstream"]:visible:last>video').get(0);
|
|
|
71
|
+ var pick
|
|
|
72
|
+ = $('#remoteVideos>span[id!="mixedstream"]:visible:last>video')
|
|
|
73
|
+ .get(0);
|
|
71
|
74
|
|
|
72
|
75
|
if (!pick) {
|
|
73
|
76
|
console.info("Last visible video no longer exists");
|
|
|
@@ -523,6 +526,8 @@ var VideoLayout = (function (my) {
|
|
523
|
526
|
* disabled
|
|
524
|
527
|
*/
|
|
525
|
528
|
my.enableActiveSpeaker = function(resourceJid, isEnable) {
|
|
|
529
|
+ console.log("Enable active speaker", resourceJid, isEnable);
|
|
|
530
|
+
|
|
526
|
531
|
var videoSpanId = null;
|
|
527
|
532
|
if (resourceJid
|
|
528
|
533
|
=== Strophe.getResourceFromJid(connection.emuc.myroomjid))
|