updateCallVolume static method

void updateCallVolume(
  1. String userId,
  2. int volume
)

更新通话中各参与方声音的变化

Implementation

static void updateCallVolume(String userId, int volume) {
  callVolumeNotifiers.putIfAbsent(userId, () => ValueNotifier<int>(0)).value = volume.clamp(0, 100);
}