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

Merge pull request #965 from jitsi/raise-hand-update

Updates raised hand to overwrite dominant speaker.
master
yanas 8 лет назад
Родитель
Сommit
4ffe013165
2 измененных файлов: 5 добавлений и 6 удалений
  1. 2
    6
      conference.js
  2. 3
    0
      modules/UI/videolayout/VideoLayout.js

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

1812
     },
1812
     },
1813
 
1813
 
1814
     /**
1814
     /**
1815
-     * Toggles the local "raised hand" status, if the current state allows
1816
-     * toggling.
1815
+     * Toggles the local "raised hand" status.
1817
      */
1816
      */
1818
     maybeToggleRaisedHand() {
1817
     maybeToggleRaisedHand() {
1819
-        // If we are the dominant speaker, we don't enable "raise hand".
1820
-        if (this.isHandRaised || !this.isDominantSpeaker) {
1821
-            this.setRaisedHand(!this.isHandRaised);
1822
-        }
1818
+        this.setRaisedHand(!this.isHandRaised);
1823
     },
1819
     },
1824
 
1820
 
1825
     /**
1821
     /**

+ 3
- 0
modules/UI/videolayout/VideoLayout.js Просмотреть файл

593
                 ? localVideoThumbnail : remoteVideos[id];
593
                 ? localVideoThumbnail : remoteVideos[id];
594
         if (video) {
594
         if (video) {
595
             video.showRaisedHandIndicator(raisedHandStatus);
595
             video.showRaisedHandIndicator(raisedHandStatus);
596
+            if (raisedHandStatus) {
597
+                video.showDominantSpeakerIndicator(false);
598
+            }
596
         }
599
         }
597
     },
600
     },
598
 
601
 

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