Expand description
<CameraPicker /> — live-data dropdown selector for the Recorder
surface (M-CAM.4 / AUT-258 + M-REC.1 / AUT-260).
Combines the M-CAM.2 IPC helpers with the storybook
CaptureSourceRow + DevicePickerMenu shapes (M-UI.8 / AUT-128)
to provide:
- On mount: invoke
list_camerasonce to seed the picker. - On open: re-fetch so newly-plugged USB cameras appear.
- On select: invoke
start_preview(camera_id)+ persist the selection toLocalStorageso re-opens land on the same camera. - Permission-denied state mirrors M-CAM.3’s
RecorderPreviewStateso the picker UI matches the canvas overlay.
The visual elements (`CaptureSourceRow`, `DevicePickerMenu`)
live in `ui-storybook` and are pure presentational — they take
view-models, not state. This module wires the storybook
components to live IPC data via Leptos `Resource` + signals.Structs§
- Camera
Picker 🔒Body Props - Props for the
CameraPickerBodycomponent. - Camera
Picker Props - Props for the
CameraPickercomponent.
Functions§
- Camera
Picker <CameraPicker />— live device picker rendered above the<CameraPreview />canvas in the Recorder surface.- Camera
Picker 🔒Body - Required Props
- log_
to_ 🔒console - read_
last_ 🔒used - refresh_
cameras 🔒 - render_
row 🔒 - resolve_
default 🔒 - Resolve which camera should be selected on initial mount:
- selected_
label 🔒 - write_
last_ 🔒used