Panels
Bot Video Panel
Panel component for displaying bot video feed
The BotVideoPanel component displays the bot's video feed in a panel. It automatically integrates with the Pipecat Client SDK to show real-time video output.
import { BotVideoPanel } from "@pipecat-ai/voice-ui-kit";
<div className="h-64 w-full">
<BotVideoPanel />
</div>| Prop | Type | Default |
|---|---|---|
className? | string | undefined |
collapsed? | boolean | false |
Usage
Collapsed Mode
Display the panel in a compact collapsed format.
import { BotVideoPanel } from "@pipecat-ai/voice-ui-kit";
<div className="w-64">
<BotVideoPanel collapsed={true} />
</div>Video Display
The panel uses the PipecatClientVideo component with:
participant="bot"to display bot videofit="contain"to preserve aspect ratioaspect-videoclass for 16:9 ratio- Muted background when no video is available
Integration
The BotVideoPanel component uses:
usePipecatClientMediaTrack("video", "bot")to get the bot's video trackPipecatClientVideocomponent for video displayPanelcomponent for consistent panel styling
It must be used within a PipecatClientProvider context to function properly.