feat: implement token-based auto stream pulling

This commit is contained in:
2026-05-09 11:03:27 +08:00
parent 966ef512ab
commit 6ff71fded0
5 changed files with 270 additions and 7 deletions

View File

@@ -19,6 +19,10 @@ type Config struct {
EdgeToken string `yaml:"edge_token"`
StreamEnabled bool `yaml:"stream_enabled"`
RTSPURLs []string `yaml:"rtsp_urls"`
// 新增:自动按需拉流配置
StreamPullURL string `yaml:"stream_pull_url"` // 云端拉流网关地址
StreamProtocol string `yaml:"stream_protocol"` // 拉流协议: flv, rtsp, ws_flv
AutoPull bool `yaml:"auto_pull"` // 是否启用自动按需拉流
InferSocket string `yaml:"infer_socket"`
InferFPS int `yaml:"infer_fps"`
InferWorkers int `yaml:"infer_workers"`