activeSpeaker property

UidCallback? activeSpeaker
getter/setter pair

Occurs when the most active speaker is detected. After a successful call of enableAudioVolumeIndication , the SDK continuously detects which remote user has the loudest volume. During the current period, the remote user, who is detected as the loudest for the most times, is the most active user. When the number of users exceeds two (included) and an active speaker is detected, the SDK triggers this callback and reports the uid of the most active speaker. If the most active speaker remains the same, the SDK triggers the activeSpeaker callback only once. If the most active speaker changes to another user, the SDK triggers this callback again and reports the uid of the new active speaker.

Param uid The user ID of the most active speaker.

Implementation

UidCallback? activeSpeaker;