diff --git a/internal/service/config_assets.go b/internal/service/config_assets.go index 46b1c66..0e02bcd 100644 --- a/internal/service/config_assets.go +++ b/internal/service/config_assets.go @@ -357,7 +357,7 @@ func (s *ConfigPreviewService) GetProfileAsset(name string) (*ConfigProfileAsset VideoSourceRef: unit.VideoSourceRef, DisplayName: unit.DisplayName, SiteName: unit.SiteName, - PublishHLSPath: "./web/hls/" + channel + "/index.m3u8", + PublishHLSPath: "./web/hls/" + unit.Name + "/index.m3u8", PublishRTSPPort: unit.RTSPPort, PublishRTSPPath: "/live/" + channel, ChannelNo: channel, @@ -533,7 +533,7 @@ func recognitionUnitToInstanceEditor(unit RecognitionUnitAsset, templateName str DisplayName: strings.TrimSpace(unit.DisplayName), SiteName: strings.TrimSpace(unit.SiteName), ChannelNo: channel, - PublishHLSPath: "./web/hls/" + channel + "/index.m3u8", + PublishHLSPath: "./web/hls/" + unit.Name + "/index.m3u8", PublishRTSPPort: rtspPort, PublishRTSPPath: "/live/" + channel, InputBindings: map[string]InputBindingEditor{ @@ -541,7 +541,7 @@ func recognitionUnitToInstanceEditor(unit RecognitionUnitAsset, templateName str }, OutputBindings: map[string]OutputBindingEditor{ "stream_output_main": { - PublishHLSPath: "./web/hls/" + channel + "/index.m3u8", + PublishHLSPath: "./web/hls/" + unit.Name + "/index.m3u8", PublishRTSPPort: rtspPort, PublishRTSPPath: "/live/" + channel, ChannelNo: channel, @@ -570,7 +570,7 @@ func recognitionUnitToRecord(unit RecognitionUnitAsset) storage.RecognitionUnitR }, "output_bindings": map[string]any{ "stream_output_main": map[string]any{ - "publish_hls_path": "./web/hls/" + channel + "/index.m3u8", + "publish_hls_path": "./web/hls/" + unit.Name + "/index.m3u8", "publish_rtsp_port": rtspPort, "publish_rtsp_path": "/live/" + channel, "channel_no": channel,