onRemoteSoundLevelUpdate method

void onRemoteSoundLevelUpdate(
  1. Map<String, double> soundLevels
)

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.

Implementation

void onRemoteSoundLevelUpdate(
  Map<String, double> soundLevels,
) {}