Refactor MediaMTX configuration and enhance RTSP streaming logging

- Removed outdated timeout settings from MediaMTX configuration for improved stream handling.
- Updated CameraStreamer class to include detailed logging for RTSP streaming state and frame dimension checks.
- Added environment variable support for configuring MediaMTX host, enhancing flexibility in deployment.
This commit is contained in:
salirezav
2025-11-01 12:58:30 -04:00
parent b7adc3788a
commit 3cb6a8e76e
4 changed files with 163 additions and 7 deletions

View File

@@ -9,11 +9,6 @@ paths:
# allow any path to be read; publishers can be added on-demand
readUser: any
sourceOnDemand: no
sourceOnDemandStartTimeout: 10s
sourceOnDemandCloseAfter: 10s
# Keep source alive even without readers (remove timeout)
# sourceCloseAfter: never # Keep stream alive indefinitely
sourceCloseAfter: 30s # Keep stream alive for 30 seconds after last reader disconnects
# Example on-demand publisher for a demo VOD (adjust file path):
# vod: