|
@@ -490,16 +490,15 @@ JitsiConferenceEventManager.prototype.setupRTCListeners = function() {
|
490
|
490
|
conference.onRemoteTrackRemoved.bind(conference));
|
491
|
491
|
|
492
|
492
|
rtc.addListener(RTCEvents.DOMINANT_SPEAKER_CHANGED,
|
493
|
|
- id => {
|
494
|
|
- if (conference.lastDominantSpeaker !== id && conference.room) {
|
495
|
|
- conference.lastDominantSpeaker = id;
|
|
493
|
+ (dominant, previous) => {
|
|
494
|
+ if (conference.lastDominantSpeaker !== dominant && conference.room) {
|
|
495
|
+ conference.lastDominantSpeaker = dominant;
|
496
|
496
|
conference.eventEmitter.emit(
|
497
|
|
- JitsiConferenceEvents.DOMINANT_SPEAKER_CHANGED, id);
|
|
497
|
+ JitsiConferenceEvents.DOMINANT_SPEAKER_CHANGED, dominant, previous);
|
498
|
498
|
|
499
|
|
- if (conference.statistics && conference.myUserId() === id) {
|
|
499
|
+ if (conference.statistics && conference.myUserId() === dominant) {
|
500
|
500
|
// We are the new dominant speaker.
|
501
|
|
- conference.statistics.sendDominantSpeakerEvent(
|
502
|
|
- conference.room.roomjid);
|
|
501
|
+ conference.statistics.sendDominantSpeakerEvent(conference.room.roomjid);
|
503
|
502
|
}
|
504
|
503
|
}
|
505
|
504
|
});
|