onRemoteAudioVolumeIndication method Null safety
- List<
NERtcAudioVolumeInfo> volumeList, - int totalVolume
Occurs when the system indicates the active speaker and the audio volume in the channel. This callback is disabled by default. You can enable the callback by calling the enableAudioVolumeIndication method. If the callback is enabled, the SDK triggers the callback based on the time interval specified in the enableAudioVolumeIndication method regardless of whether any participants speak in the channel.
In the array returned:
- If a uid is contained in the array returned in the last response but not in the array returned in the current response. The remote user with the uid does not speak by default.
- If the volume is 0, the user does not speak.
- If the array is empty, the remote user does not speak.
volumeList indicates the array that contains the information about user IDs and volumes. NERtcAudioVolumeInfo
totalVolume indicates the volume of the mixing audio. Value range: [0 to 0,100.
Implementation
void onRemoteAudioVolumeIndication(
List<NERtcAudioVolumeInfo> volumeList, int totalVolume);