Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.26 KB

STREAMING_IMPLEMENTATION_NOTES.md

File metadata and controls

30 lines (22 loc) · 1.26 KB

Streaming Implementation

Current State

The TheftWatch streaming implementation includes:

  1. A new StreamingView with camera selection and stream controls
  2. Integration in the main menu
  3. Backend service calls to start/stop FFmpeg streams

Missing Component

To fully implement streaming functionality, a complete solution for serving HLS files is needed:

Problem:

The StreamIngestionService creates HLS segments using FFmpeg but the system is missing:

  • HTTP endpoint to serve HLS segment files to browsers
  • CORS configuration for browser access to stream files
  • Proper file access controls for the stream segments

Required Implementation:

  1. Create a proper file serving mechanism for HTTP access to HLS segments
  2. Configure CORS properly for the streaming endpoints
  3. Ensure secure access to stream segments (authentication/authorization)

Workaround:

When the system runs and FFmpeg creates segments in the configured directory (/data/hls by default), these files should be accessible at endpoint like:

  • /stream/{cameraId}/stream.m3u8 (for the playlist)
  • /stream/{cameraId}/segment_XXX.ts (for individual segments)

The current implementation meets the UI requirements but streaming functionality will require additional backend work to properly serve files.