onUserVoiceVolumeChanged method

void onUserVoiceVolumeChanged(
  1. Map<String, int> volumeMap
)

Implementation

void onUserVoiceVolumeChanged(Map<String, int> volumeMap) {
  for (var entry in volumeMap.entries) {
    String userId = entry.key;
    if (entry.value > volumeCanHeardMinLimit) {
      userState.speakingUserList.value.add(userId);
    } else {
      userState.speakingUserList.value.remove(userId);
    }
  }
}