sw-call-controls
sw-call-controls
sw-call-controls
Reactive call-control bar that bridges device + call-state context
to the presentational <sw-ui-control-bar> primitive.
sw-call-controls is the SDK-aware sibling of <sw-ui-control-bar>: it
subscribes to devicesContext for mic / camera / speaker state and to
callStateContext for self-participant capabilities (screenshare,
handraise, end, …) and then forwards the user’s intent to the
underlying Call and DeviceController.
Input precedence (most specific wins): .call > context.
When .call is set, screen-share / hand-raise / hang-up are driven
directly off the call. Mic / camera / speaker toggles always require
devicesContext; without it, those buttons render in their default
(unbound) state.
Buttons are auto-hidden when the corresponding capability is absent
from callState.capabilities (e.g. screenshare, handraise, end).
Every event from <sw-ui-control-bar> bubbles through, so parents can
still listen to sw-mic-toggle, sw-camera-toggle, sw-device-change,
etc., without re-handling them here.
Class: SwCallControls · Module: packages/web-components/src/components/sw-call-controls.ts
SwCallControls, sw-call-controlsExplicit Call — when set, drives call-state actions directly.
showScreenShare field.
showHandRaise field.
showTranscript field.
transcriptActive field.
showSettings field.
showFullscreen field.