lib-jitsi-meet
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • connection: XmppConnection

        The XMPP connection instance.

      • jid: string
      • password: string
      • xmpp: XMPP
      • Optionaloptions: IChatRoomOptions
        • disableFocus

          when set to {@code false} will not invite Jicofo into the room.

        • disableDiscoInfo

          when set to {@code false} will skip disco info. This is intended to be used only for lobby rooms.

        • enableLobby

          when set to {@code false} will skip creating lobby room.

        • hiddenFromRecorderFeatureEnabled

          when set to {@code true} we will check identity tag for node presence.

      Returns ChatRoom

    Properties

    connection: XmppConnection
    connectionTimes: Record<string, number>
    focusMucJid: string
    joined: boolean
    membersOnlyEnabled?: boolean
    myroomjid: string
    presMap: IPresenceMap
    role: string
    roomjid: string
    transcriptionStatus: string
    visitorsSupported?: boolean
    xmpp: XMPP

    Methods

    • Dials a number.

      Parameters

      • number: string

        the number

      Returns Promise<void>

    • Sends the presence unavailable, signaling the server we want to leave the room.

      Parameters

      • Optionalreason: string

      Returns void

    • Obtains the info about given media advertised (in legacy format) in the MUC presence of the participant identified by the given endpoint JID. This is for mantining interop with endpoints that do not support source-name signaling (Jigasi and very old mobile clients).

      Parameters

      • endpointId: string

        the endpoint ID mapped to the participant which corresponds to MUC nickname.

      • mediaType: MediaType

        the type of the media for which presence info will be obtained.

      Returns IPeerMediaInfo

      presenceInfo an object with media presence info or null either if there is no presence available or if the media type given is invalid.

    • Returns the meeting unique ID if any came from backend.

      Returns string

      • The meeting ID.
    • Requests short-lived credentials for a service. The function does not use anything from the room, but the backend requires the sender to be in the room as the credentials contain the meeting ID and are valid only for the room.

      Parameters

      • service: string

      Returns Promise<string>

    • Checks if the user identified by given mucJid is the conference focus.

      Parameters

      • mucJid: string

        the full MUC address of the user to be checked.

      Returns boolean

      true if MUC user is the conference focus or false if is not. When given mucJid does not exist in the MUC then null is returned.

    • Joins the chat room.

      Parameters

      • Optionalpassword: string

        Password to unlock room on joining.

      • OptionalreplaceParticipant: boolean

      Returns Promise<void>

      • resolved when join completes. At the time of this writing it's never rejected.
    • Parameters

      • jid: string
      • reason: string = 'You have been kicked.'

      Returns void

    • Leaves the room. Closes the jingle session.

      Parameters

      • Optionalreason: string

      Returns Promise<any>

      which is resolved if XMPPEvents.MUC_LEFT is received less than 5s after sending presence unavailable. Otherwise the promise is rejected.

    • Returns the number of listeners for the specified event.

      Parameters

      • OptionaleventName: string

        The name of the event.

      Returns number

      • The number of listeners for the event.
    • Parameters

      • key: string
      • onSuccess: SuccessCallback
      • onError: ErrorCallback
      • onNotSupported: () => void

      Returns void

    • Mutes remote participant.

      Parameters

      • jid: string

        of the participant

      • mute: boolean
      • mediaType: string

      Returns void

    • Attaches a handler for events (e.g., "participant joined") in the conference. All possible events are defined in JitsiConferenceEvents.

      Parameters

      • eventId: string

        The event ID.

      • handler: EventListener

        Handler for the event.

      Returns void

    • Send text message to the other participants in the conference

      Parameters

      • message: string
      • elementName: string
      • OptionalreplyToId: string

      Returns void

    • Parameters

      • fromJoin: boolean = false

        Whether this is initial presence to join the room.

      Returns void

    • Send private text message to another participant of the conference

      Parameters

      • id: string

        id/muc resource of the receiver

      • message: string
      • elementName: string
      • useDirectJid: boolean = false
      • OptionalreplyToId: string

      Returns void

    • Sends a reaction message to the other participants in the conference.

      Parameters

      • reaction: string

        The reaction being sent.

      • messageId: string

        The id of the message being sent.

      • OptionalreceiverId: string

        The receiver of the message if it is private.

      Returns void

    • Parameters

      • jid: string
      • affiliation: string

      Returns void

    • Sets the meeting unique Id (received from the backend).

      Parameters

      • meetingId: string

        The new meetings id.

      Returns void

    • Turns off or on the members only config for the main room.

      Parameters

      • enabled: boolean

        Whether to turn it on or off.

      • onSuccess: SuccessCallback

        optional callback.

      • onError: ErrorCallback

        optional callback.

      Returns void

    • Sets the special listener to be used for "command"s whose name starts with "jitsi_participant_".

      Parameters

      • listener: ParticipantPropertyListener

      Returns void