Refactor camera feed handling to support dynamic camera IDs and improve context management

This commit is contained in:
2025-12-17 14:19:23 +00:00
parent cc8b3a5691
commit 775fce7900
19 changed files with 211 additions and 248 deletions

View File

@@ -0,0 +1,12 @@
// Camera configuration - add more cameras here as needed
export const CAMERA_IDS = ["A", "B", "C"] as const;
export type CameraID = (typeof CAMERA_IDS)[number];
export const DEFAULT_REGIONS = [
{ name: "Bay 1", brushColour: "#ff0000" },
{ name: "Bay 2", brushColour: "#00ff00" },
{ name: "Bay 3", brushColour: "#0400ff" },
{ name: "Bay 4", brushColour: "#ffff00" },
{ name: "Bay 5", brushColour: "#fc35db" },
];