Package 

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 Integer compareAudioLevel(Participant a, Participant b) A comparator to prefer loudest audio level.
      final static Integer compareIsSpeaking(Participant a, Participant b) A comparator to prefer speaking participants first.
      final static Integer compareLastSpokenAt(Participant a, Participant b) A comparator to prefer to newest speaker first
      final static Integer compareJoinedAt(Participant a, Participant b) A comparator to prefer to latest joining participant
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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