soundLevel property

Stream<double> get soundLevel

Implementation

Stream<double> get soundLevel {
  final user = ZegoUIKitCore.shared.coreData.getUser(id);
  if (user.isEmpty) {
    return ZegoUIKitCore.shared.coreData
            .getUserInMixerStream(id)
            .mainChannel
            .soundLevel
            ?.stream ??
        const Stream.empty();
  }
  return user.mainChannel.soundLevel?.stream ?? const Stream.empty();
}