Skip to content

Commit

Permalink
fix: Ignore jigasi muted state when counting muted participants.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Oct 25, 2023
1 parent 098b18c commit 57b3937
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,16 @@ class CallPage(driver: RemoteWebDriver) : AbstractPageObject(driver) {

/**
* Returns a count of how many remote participants are totally muted (audio
* and video).
* and video). We ignore jigasi participants as they maybe muted in their presence
* but also hard muted via the device, and we later ignore their state.
*/
fun numRemoteParticipantsMuted(): Int {
val result = driver.executeScript(
"""
try {
return APP.conference._room.getParticipants()
.filter(participant => participant.isAudioMuted() && participant.isVideoMuted())
.filter(participant => participant.isAudioMuted() && participant.isVideoMuted()
&& participant.getProperty("features_jigasi") !== true)
.length;
} catch (e) {
return e.message;
Expand Down

0 comments on commit 57b3937

Please sign in to comment.