onCapturedSoundLevelUpdate property

(void Function(double soundLevel)?) onCapturedSoundLevelUpdate
getter/setter pair

The local captured audio sound level callback.

Available since: 1.1.0 Description: The local captured audio sound level callback. Trigger: After you start the sound level monitor by calling startSoundLevelMonitor. Caution:

  1. The callback notification period is the parameter value set when the startSoundLevelMonitor is called. The callback value is the default value of 0 When you have not called the interface startPublishingStream and startPreview.
  2. This callback is a high-frequency callback, and it is recommended not to do complex logic processing inside the callback. Related APIs: Start sound level monitoring via startSoundLevelMonitor. Monitoring remote played audio sound level by callback onRemoteSoundLevelUpdate
  • soundLevel Locally captured sound level value, ranging from 0.0 to 100.0 (This value only represents the range of the sound level value returned by the callback, not the precision.) .

Implementation

static void Function(double soundLevel)? onCapturedSoundLevelUpdate;