Skip to main content

CameraPreview

Function CameraPreview 

Source
pub fn CameraPreview() -> impl IntoView
Expand description

<CameraPreview /> — the recorder surface’s webcam preview.

The component renders a 720×720 <canvas> plus an overlaid copy element that displays the current RecorderPreviewState. M-PIX.8 installs a 15 fps poll that pulls the latest BGRA frame from CameraFrameSlot via the latest_camera_frame_bgra Tauri command + paints it into the canvas (with a BGRA→RGBA swap).