onUserVoiceVolumeChanged method

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

Implementation

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