VideoSidebar
Meeting roomThe session's participants' video (LiveKit) in a panel beside the room, opened from the room header's button (VideoPanelButton), like Google Chat's side panels. Camera and microphone stay off until the person turns them on.
Source
src/components/video/VideoSidebar.tsxUsage
Panel closed
UI preview · simulated participants, no media connection
Guidelines
- The header button (top right of the room, for everyone) shows how many are online and opens or closes the panel; its tooltip names it
- From md the panel docks to the right of the content area, which narrows to make room: nothing is covered and nothing scrolls sideways
- Below md it is a full-height sheet over the room: focus moves into it, Escape or the close button closes it, and focus returns to the header button
- Open by default from 1280px, closed below; the person's choice is remembered in this browser only (localStorage), never on the server. Phones always start with it closed
- The panel header reads "N participants" and has a close button; the tiles scroll when there are many (up to 50)
- Closing the panel only hides it: the LiveKit connection, everyone's audio and your camera and microphone carry on, and opening it shows the live tiles at once
- Use inline for bounded catalogue examples (drawn in place rather than beside the room)
- When the room has no video set up, it shows a preview of your own camera only, and says others cannot see it
- Connection status reflects the room rather than an unconditional live badge
- Each remote tile has a speaker button: mute that person only for yourself, including screen-share audio, without changing their microphone or what others hear
- If the browser blocks playback, the same speaker button starts listening; there is no separate Play audio button
- Local mute follows participant identity across the panel closing and microphone toggles; the catalogue uses simulated people, never added to real rooms
- Camera failures remain visible and can be retried with the camera button
- Video tiles stay dark in both themes, like a screen
Accessibility
- The header button has aria-expanded and aria-controls, an accessible name with the online count, and a 44px target
- On phones the sheet is a modal dialog that holds focus until it closes; on wider screens the panel is a complementary landmark named by its title
- The panel slides in on the motion tokens, instantly under reduced motion
- Speaker buttons have 44px targets, participant-specific accessible names and aria-pressed mute state
- Muted and blocked-audio states include text rather than relying on icon colour alone
- Multi-person content scrolls independently so the main controls remain reachable