feat(streaming): Add live streaming functionality for USDA Vision Camera system

- Introduced non-blocking live preview streaming that operates independently from recording.
- Implemented REST API endpoints for starting and stopping streams, and retrieving live streams.
- Developed a web interface (`camera_preview.html`) for users to control and view camera streams.
- Created TypeScript definitions for API integration in React projects.
- Added comprehensive testing script (`test_streaming.py`) to validate API endpoints and concurrent operations.
- Updated database migration to fix visibility of experiment repetitions for all authenticated users.
This commit is contained in:
Alireza Vaezi
2025-07-28 17:53:59 -04:00
parent 7c7115a0f4
commit cdcca280f2
10 changed files with 2410 additions and 421 deletions

View File

@@ -23,17 +23,23 @@ export interface MachineStatus {
}
export interface CameraStatus {
name: string
name?: string
status: string
is_recording: boolean
last_checked: string
last_error: string | null
last_error?: string | null
device_info?: {
friendly_name: string
serial_number: string
friendly_name?: string
serial_number?: string
port_type?: string
model?: string
firmware_version?: string
last_checked?: number
}
current_recording_file: string | null
recording_start_time: string | null
current_recording_file?: string | null
recording_start_time?: string | null
last_frame_time?: string
frame_rate?: number
}
export interface RecordingInfo {