-
public final class SortParticipantsKt
-
-
Method Summary
Modifier and Type Method Description final static List<Participant>sortParticipants(List<Participant> participants)Default sort for participants, it'll order participants by: local participant
dominant speaker (speaker with the loudest audio level)
other speakers that are recently active
participants with video on
by joinedAt
final static IntegercompareAudioLevel(Participant a, Participant b)A comparator to prefer loudest audio level. final static IntegercompareIsSpeaking(Participant a, Participant b)A comparator to prefer speaking participants first. final static IntegercompareLastSpokenAt(Participant a, Participant b)A comparator to prefer to newest speaker first final static IntegercompareJoinedAt(Participant a, Participant b)A comparator to prefer to latest joining participant -
-
Method Detail
-
sortParticipants
final static List<Participant> sortParticipants(List<Participant> participants)
Default sort for participants, it'll order participants by:
local participant
dominant speaker (speaker with the loudest audio level)
other speakers that are recently active
participants with video on
by joinedAt
-
compareAudioLevel
final static Integer compareAudioLevel(Participant a, Participant b)
A comparator to prefer loudest audio level.
-
compareIsSpeaking
final static Integer compareIsSpeaking(Participant a, Participant b)
A comparator to prefer speaking participants first.
-
compareLastSpokenAt
final static Integer compareLastSpokenAt(Participant a, Participant b)
A comparator to prefer to newest speaker first
-
compareJoinedAt
final static Integer compareJoinedAt(Participant a, Participant b)
A comparator to prefer to latest joining participant
-
-
-