onCapturedSoundLevelUpdate method
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:
- 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 interfacestartPublishingStream
andstartPreview
. - 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.
Implementation
void onCapturedSoundLevelUpdate(
double soundLevel,
) {}