Skip to content
Design System
GitHub

Many robot cameras at once as a grid, a focused camera with a strip, or a list on phones, pausing hidden tiles and capping live streams, each tile with its robot's state and alarm.

API reference

Generated from the types. Every part also takes className.

CameraWall

camerasrequired
CameraWallCamera[]
getSourcerequired
(camera: CameraWallCamera, options: { quality: CameraWallQuality; }) => CameraWallSource | null | undefinedThe product's source function: what to play for a camera, at a quality. The wall calls it on render, only for the cameras it plays, so return the same stream for the same camera and quality (keep them in a cache), and open connections there lazily. onLiveChange says which are playing, to close the rest.
maxLive
number = 9At most this many streams play at once: the focused camera first, then tiles in order. The rest show their last still.
onLiveChange
(live: { id: string; quality: CameraWallQuality; }[]) => voidCalled with the cameras playing and the quality each was asked for, whenever that changes.
focused
string | nullThe camera shown large, controlled. null is the grid.
defaultFocused
string | null = nullThe camera shown large at first, when focused is not given.
onFocusedChange
(id: string | null) => void
defaultSort
"attention" | "name" = "attention"Attention first (alarms, offline, stalled, then by name) or by name.
defaultNeedsAttention
boolean = falseStart with only the cameras that need attention.
pageSize
numberTiles per page. By default the grid's own: 4, 9 or 16, and 6 in the phone list.
staleAfterMs
number | nullWith no new frame for this long, a feed says Stalled. Passed to every feed: 2000 ms by default, null never.
aspectRatio
number = 16 / 9Width over height of every picture. 16 / 9 by default.
onSnapshot
(camera: CameraWallCamera, blob: Blob) => voidShows "Take snapshot" on the focused camera.
onRetry
(camera: CameraWallCamera) => voidShows Reconnect on the focused camera while it is offline.
announceEveryMs
number = 5000State changes are announced politely, at most this often (ms).
labels
Partial<CameraWallLabels>
locale
stringFormats the counts and page ranges (a BCP 47 tag such as "zh-TW").