|
@@ -41,7 +41,7 @@ function JitsiConference(options) {
|
41
|
41
|
this.statistics = new Statistics();
|
42
|
42
|
setupListeners(this);
|
43
|
43
|
this.participants = {};
|
44
|
|
- this.lastActiveSpeaker = null;
|
|
44
|
+ this.lastDominantSpeaker = null;
|
45
|
45
|
this.dtmfManager = null;
|
46
|
46
|
this.somebodySupportsDTMF = false;
|
47
|
47
|
this.authEnabled = false;
|
|
@@ -745,9 +745,9 @@ function setupListeners(conference) {
|
745
|
745
|
});
|
746
|
746
|
|
747
|
747
|
conference.rtc.addListener(RTCEvents.DOMINANTSPEAKER_CHANGED, function (id) {
|
748
|
|
- if(conference.lastActiveSpeaker !== id && conference.room) {
|
749
|
|
- conference.lastActiveSpeaker = id;
|
750
|
|
- conference.eventEmitter.emit(JitsiConferenceEvents.ACTIVE_SPEAKER_CHANGED, id);
|
|
748
|
+ if(conference.lastDominantSpeaker !== id && conference.room) {
|
|
749
|
+ conference.lastDominantSpeaker = id;
|
|
750
|
+ conference.eventEmitter.emit(JitsiConferenceEvents.DOMINANT_SPEAKER_CHANGED, id);
|
751
|
751
|
}
|
752
|
752
|
});
|
753
|
753
|
|
|
@@ -842,9 +842,9 @@ var JitsiConferenceEvents = {
|
842
|
842
|
*/
|
843
|
843
|
TRACK_REMOVED: "conference.trackRemoved",
|
844
|
844
|
/**
|
845
|
|
- * The active speaker was changed.
|
|
845
|
+ * The dominant speaker was changed.
|
846
|
846
|
*/
|
847
|
|
- ACTIVE_SPEAKER_CHANGED: "conference.activeSpeaker",
|
|
847
|
+ DOMINANT_SPEAKER_CHANGED: "conference.dominantSpeaker",
|
848
|
848
|
/**
|
849
|
849
|
* A new user joinned the conference.
|
850
|
850
|
*/
|