onRemoteSoundLevelUpdate property

(void Function(Map<String, double> soundLevels)?) onRemoteSoundLevelUpdate
getter/setter pair

The remote playing streams audio sound level callback.

Available since: 1.1.0 Description: The remote playing streams audio sound level callback. Trigger: After you start the sound level monitor by calling startSoundLevelMonitor, you are in the state of playing the stream startPlayingStream. Caution: The callback notification period is the parameter value set when the startSoundLevelMonitor is called. Related APIs: Start sound level monitoring via startSoundLevelMonitor. Monitoring local captured audio sound by callback onCapturedSoundLevelUpdate or onCapturedSoundLevelInfoUpdate.

  • soundLevels Remote sound level hash map, key is the streamID, value is the sound level value of the corresponding streamID, 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(Map<String, double> soundLevels)?
    onRemoteSoundLevelUpdate;