sw-participant-controls
sw-participant-controls
sw-participant-controls
Per-participant action panel — mute / unmute audio & video, adjust volume, pin / unpin, and remove a single participant from the call.
Identifies the target participant from the participant-id attribute by
looking it up in callState.participants (or in the live Call when
.call is set). Available actions are gated by the call’s
capabilities list — for instance, “Remove” only renders when the
server has granted the end_member (or equivalent) capability to the
local user, and audio/video mute toggles require member_mute / etc.
Designed to be slotted into <sw-participants>’s
controls-${memberId} named slot, but it works standalone anywhere you
have a participant-id.
Input precedence (most specific wins): .call > context.
Class: SwParticipantControls · Module: packages/web-components/src/components/sw-participant-controls.ts
SwParticipantControls, sw-participant-controlsparticipantId field.
showVolume field.
showPin field.
Explicit Call — when set, subscribes directly and bypasses context.