enableAudioVolumeIndication method Null safety
Enables the volume indication.
The method allows the SDK to report to the app the information about the volume of the user that publishes local streams and the remote users (up to 3 users) with the highest instantaneous volume.
The SDK sends to the app the current speaker and the volume. After enabling this method, as long as one or more users publish streams, regardless of whether users speak
the SDK triggers the onRemoteAudioVolumeIndication callback based on the preset time intervals.
enable
specifies whether the speaker volume is prompted..
interval
specifies the time interval at which volume prompt. Unit: milliseconds. The value must be the multiples of 100 milliseconds. We recommend that you set the value 200 milliseconds or more.
Implementation
Future<VoidResult> enableAudioVolumeIndication(bool enable, int interval);