Просмотр исходного кода

Adds some active speaker logs.

j8
yanas 11 лет назад
Родитель
Сommit
467b3220d6
1 измененных файлов: 7 добавлений и 2 удалений
  1. 7
    2
      videolayout.js

+ 7
- 2
videolayout.js Просмотреть файл

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
      * @param removedVideoSrc src stream identifier of the video.
64
      * @param removedVideoSrc src stream identifier of the video.
64
      */
65
      */
65
     my.checkChangeLargeVideo = function(removedVideoSrc) {
66
     my.checkChangeLargeVideo = function(removedVideoSrc) {
67
             // this is currently displayed as large
68
             // this is currently displayed as large
68
             // pick the last visible video in the row
69
             // pick the last visible video in the row
69
             // if nobody else is left, this picks the local video
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
             if (!pick) {
75
             if (!pick) {
73
                 console.info("Last visible video no longer exists");
76
                 console.info("Last visible video no longer exists");
523
      * disabled
526
      * disabled
524
      */
527
      */
525
     my.enableActiveSpeaker = function(resourceJid, isEnable) {
528
     my.enableActiveSpeaker = function(resourceJid, isEnable) {
529
+        console.log("Enable active speaker", resourceJid, isEnable);
530
+
526
         var videoSpanId = null;
531
         var videoSpanId = null;
527
         if (resourceJid
532
         if (resourceJid
528
                 === Strophe.getResourceFromJid(connection.emuc.myroomjid))
533
                 === Strophe.getResourceFromJid(connection.emuc.myroomjid))

Загрузка…
Отмена
Сохранить