feat(video): 可配置 RTSP 打开超时并提高默认时长

- Settings 增加 video_open_timeout_sec(VIDEO_OPEN_TIMEOUT_SEC),默认 45s
- SessionManager 全部就绪等待为该值 + 5s;StreamWorker 传入单路超时
- baked pipeline 回退默认值与配置对齐;.env.example 补充说明
- or_site_config.sample.json 扩展穿透摄像头与术间绑定示例
- 同步 uv.lock
This commit is contained in:
Kevin
2026-04-29 10:51:23 +08:00
parent 17d27be18d
commit 869ea21bbe
7 changed files with 986 additions and 962 deletions

View File

@@ -19,6 +19,8 @@ POSTGRES_PORT=35432
# UVICORN_RELOAD=true
# --- VideoRTSP 与按路后端(须与客户端 camera_ids 一致)---
# 单路 RTSP 首次打开超时(秒);四路须在「该值 + 5」秒内全部就绪穿透/公网链路可调大(默认 45
# VIDEO_OPEN_TIMEOUT_SEC=45
# VIDEO_DEFAULT_BACKEND=rtsp
# VIDEO_CAMERA_BACKEND_OVERRIDES_JSON={"or-cam-01":"rtsp","or-cam-02":"hikvision_sdk"}
# 站点 JSON术间↔摄像头↔语音终端只在这里维护voice_or_room_bindings须同时含 video_rtsp_urls可为 []。