lib-jitsi-meet
    Preparing search index...

    A model for keeping track of each user's total time as a dominant speaker. The model also keeps track of the user's last known name in case the user has left the meeting, which is also tracked.

    Index

    Constructors

    • Initializes a new SpeakerStats instance.

      Parameters

      • userId: string

        The id of the user being tracked.

      • displayName: string

        The name of the user being tracked.

      • isLocalStats: boolean

        True if the stats model tracks the local user.

      Returns SpeakerStats

    Methods

    • Get how long the tracked user has been dominant speaker.

      Returns number

      • The speaker time in milliseconds.
    • Updates the last known name of the user being tracked.

      Parameters

      • newName: string

        The user name.

      Returns void

    • Returns true if the tracked user is currently a dominant speaker.

      Parameters

      • isNowDominantSpeaker: boolean

        If true, the user will be accumulating time as dominant speaker. If false, the user will not accumulate time and will record any time accumulated since starting as dominant speaker.

      • silence: boolean

        Indicates whether the dominant speaker is silent or not.

      Returns void