WebRTCCall
WebRTCCall represents an active call between the local user and one or
more remote participants. Instances are never constructed directly by
applications — they are returned by
SignalWire.dial for outbound
calls, or surfaced through the inbound-call flow once the user has
registered.
The class owns every aspect of an in-progress call: signaling
(RTCPeerConnection, Verto messages), local and remote media streams,
participant roster, layout, recording/streaming state, and network-quality
telemetry. State is exposed in two complementary forms — a snapshot getter
(e.g. locked)
for one-shot reads and an observable (e.g.
locked$) for reactive
UI binding. Event streams that have no snapshot equivalent end in $ only
(e.g. memberJoined$,
signalingEvent$).
The available control methods depend on the capabilities granted by the server
at join time — inspect capabilities$ before exposing a
control in your UI. Calling hangup ends the call locally and
transitions status$ to disconnected; the instance is then safe
to release.
Extends
Destroyable
Implements
CallManagerCall
Constructors
Constructor
Parameters
clientSession
Active client session created by SignalWire. Provides the signaling
transport and authentication context for the call.
options
Media and behavior options for this call (audio/video constraints,
recovery, etc.). See CallOptions.
initialization
Initialization payload supplied by the SDK when constructing the call. Carries direction, remote address, and any inbound-call metadata.
address
Optional pre-resolved Address for the destination. When omitted, the
address is derived from the dial string or inbound signaling.
Returns
WebRTCCall
Properties
id
Unique identifier for this call.
to
Destination URI this call was placed to.