hls适配新的分片下载逻辑

This commit is contained in:
zqc
2026-02-28 14:51:16 +08:00
parent 85bad4aa78
commit cd27032e6d
3 changed files with 107 additions and 62 deletions

View File

@@ -190,6 +190,10 @@ def start_service_group(group: dict, hls_config: dict = None):
"--algorithm", algorithm
]
# 如果是HLS类型添加hls-root-path参数
if video_source_type == "hls" and hls_config:
cmd.extend(["--hls-root-path", hls_config.get("hls_root_path", "")])
logger.info(f"[INFO] Starting service group '{group_name}': ws={ws_host}:{ws_port}, algorithm={algorithm}, source={video_source_type}")
# DEBUG_MODE=True 时前台运行方便调试False 时后台运行,适合部署