onUpdateSpeakers abstract method
This is called every 1 second with list of active speakers
A HMSSpeaker object contains -
- peerId: the peer identifier of HMSPeer who is speaking
- trackId: the track identifier of HMSTrack which is emitting audio
- audioLevel: a number within range 1-100 indicating the audio volume
A peer who is not present in the list indicates that the peer is not speaking
This can be used to highlight currently speaking peers in the room
- Parameter speakers: the list of speakers
Implementation
void onUpdateSpeakers({required List<HMSSpeaker> updateSpeakers});