pub const SCREEN_PREVIEW_WIDTH: u32 = 1280;Expand description
Preview frame width — must match the backend screen_capture::PREVIEW_WIDTH
so the polled BGRA bytes fit the canvas pixel-for-pixel (putImageData
does not scale). The two crates can’t share a const (native vs wasm).