lib-jitsi-meet
    Preparing search index...

    Implements end-to-end ping (from one conference participant to another) via the jitsi-videobridge channel (either WebRTC data channel or web socket).

    TODO: use a broadcast message instead of individual pings to each remote participant.

    This class:

    1. Sends periodic ping requests to all other participants in the conference.
    2. Responds to ping requests from other participants.
    3. Fires events with the end-to-end RTT to each participant whenever a response is received.
    4. Fires analytics events with the end-to-end RTT periodically.
    Index

    Constructors

    • Parameters

      • conference: JitsiConference

        The conference.

      • options: IE2ePingOptions
      • sendMessage: (message: IPingMessage, participantId: string) => void

        The function to use to send a message.

      Returns E2ePing

    Properties

    conference: JitsiConference
    eventEmitter: any
    maxConferenceSize: number
    maxMessagesPerSecond: number
    numRequests: number
    participants: { [key: string]: ParticipantWrapper }
    sendMessage: (message: IPingMessage, participantId: string) => void

    Methods

    • Delay processing USER_JOINED events until the MUC is fully joined, otherwise the apparent conference size will be wrong.

      Returns void

    • Handles a ping request coming from another participant.

      Parameters

      • participantId: string

        The ID of the participant who sent the request.

      • request: { id: number }

        The request.

      Returns void

    • Handles a ping response coming from another participant

      Parameters

      • participantId: string

        The ID of the participant who sent the response.

      • response: { id: number }

        The response.

      Returns void

    • Handles a participant joining the conference. Starts to send ping requests to the participant.

      Parameters

      • id: string

        The ID of the participant.

      • participant: JitsiParticipant

        The participant that joined.

      Returns void

    • Handles a participant leaving the conference. Stops sending requests.

      Parameters

      • id: string

        The ID of the participant.

      Returns void

    • Remove a participant without calling "stop".

      Parameters

      • id: string

      Returns void