The local Stream which captures input video and audio
The dedicated audio stream used to measure volume levels for voice activity detection.
A mapping of connected peers
A mapping of connected remote streams
Is outbound broadcast of local audio enabled?
The polling interval ID for connected users that might have unexpectedly dropped out of our peer network.
The master orchestration instance
The active audio/video settings being used
Private
_initializedHas the client been successfully initialized?
Is audio broadcasting push-to-talk enabled?
Is audio broadcasting always enabled?
Is audio broadcasting voice-activation enabled?
Is the current user muted?
Connect to a peer directly, either as the initiator or as the receiver
The Foundry user ID with whom we are connecting
Is the current user initiating the connection, or responding to it?
The constructed and configured SimplePeer instance
Private
_connectPrivate
_createPrivate
_createPrivate
Create the SimplePeer instance for the desired peer connection. Modules may implement more advanced connection strategies by overriding this method.
The Foundry user ID with whom we are connecting
Is the current user initiating the connection, or responding to it?
Private
_setup
An implementation of the AVClient which uses the simple-peer library and the Foundry socket server for signaling. Credit to bekit#4213 for identifying simple-peer as a viable technology and providing a POC implementation.