lib-jitsi-meet
    Preparing search index...

    Instantiates a new ProxyConnectionPC and ensures only one exists at a given time. Currently it assumes ProxyConnectionPC is used only for screensharing and assumes IQs to be used for communication.

    Index

    Constructors

    • Initializes a new {@code ProxyConnectionService} instance.

      Parameters

      • options: {
            convertVideoToDesktop?: boolean;
            jitsiConnection?: JitsiConnection;
            onRemoteStream: Function;
            onSendMessage: Function;
            pcConfig?: any;
        } = {}

        Values to initialize the instance with.

        • OptionalconvertVideoToDesktop?: boolean

          Whether or not proxied video should be returned as a desktop stream. Defaults to false.

        • OptionaljitsiConnection?: JitsiConnection

          The {@code JitsiConnection} which will be used to fetch TURN credentials for the P2P connection.

        • onRemoteStream: Function

          Callback to invoke when a remote video stream has been received and converted to a {@code JitsiLocakTrack}. The {@code JitsiLocakTrack} will be passed in.

        • onSendMessage: Function

          Callback to invoke when a message has to be sent (signaled) out. The arguments passed in are the jid to send the message to and the message.

        • OptionalpcConfig?: any

          The {@code RTCConfiguration} to use for the WebRTC peer connection.

      Returns ProxyConnectionService

    Properties

    _options: any

    Holds a reference to the collection of all callbacks.

    _peerConnection: ProxyConnectionPC

    The active instance of {@code ProxyConnectionService}.

    Methods

    • Parses a message object regarding a proxy connection to create a new proxy connection or update and existing connection.

      Parameters

      • message: { data: { iq: string }; from: string }

        A message object regarding establishing or updating a proxy connection.

        • data: { iq: string }

          An object containing additional message details.

          • iq: string

            The stringified iq which explains how and what to update regarding the proxy connection.

        • from: string

          The message sender's full jid. Used for sending replies.

      Returns void

    • Instantiates and initiates a proxy peer connection.

      Parameters

      • peerJid: string

        The jid of the remote client that should receive messages.

      • localTracks: JitsiLocalTrack[] = []

        Initial media tracks to send through to the peer.

      Returns void