Skip to content

Commit

Permalink
Apparently Twilio sometimes gives us a null dominant speaker
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkaufman committed Feb 13, 2021
1 parent 70dd3c4 commit 8931b5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion html/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,9 @@ function connect_twilio() {
}

room.on('dominantSpeakerChanged', participant => {
highlightParticipantDiv(participant.identity);
if (participant) {
highlightParticipantDiv(participant.identity);
}
});

room.on('participantConnected', addParticipant);
Expand Down

0 comments on commit 8931b5b

Please sign in to comment.