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
class: SwCallControls, sw-call-controls
Fields
call
Explicit Call — when set, drives call-state actions directly.
showScreenShare
showScreenShare field.
screenShareAudio
Also request the shared surface’s audio when the user starts a screen share. Best-effort — whether audio is captured depends on the browser, the OS, and the surface the user picks.
showHandRaise
showHandRaise field.
showTranscript
showTranscript field.
transcriptActive
transcriptActive field.
showSettings
showSettings field.
showFullscreen
showFullscreen field.