Initializes a new {@code ProxyConnectionService} instance.
Values to initialize the instance with.
Optional
convertVideoToDesktop?: booleanWhether or not proxied video should be returned as a desktop stream. Defaults to false.
Optional
jitsiConnection?: JitsiConnectionThe {@code JitsiConnection} which will be used to fetch TURN credentials for the P2P connection.
Callback to invoke when a remote video stream has been received and converted to a {@code JitsiLocakTrack}. The {@code JitsiLocakTrack} will be passed in.
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.
Optional
pcConfig?: anyThe {@code RTCConfiguration} to use for the WebRTC peer connection.
Holds a reference to the collection of all callbacks.
The active instance of {@code ProxyConnectionService}.
Parses a message object regarding a proxy connection to create a new proxy connection or update and existing connection.
A message object regarding establishing or updating a proxy connection.
An object containing additional message details.
The stringified iq which explains how and what to update regarding the proxy connection.
The message sender's full jid. Used for sending replies.
Instantiates and initiates a proxy peer connection.
The jid of the remote client that should receive messages.
Initial media tracks to send through to the peer.
Terminates any active proxy peer connection.
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.