[SEN] 修复实时监看按需拉流循环等待 (#54) #55

Open
ila wants to merge 34 commits from agent/codex/54-sense-liveview-on-demand into agent/codex/51-sense-auto-liveview
Showing only changes of commit 49af68dc6e - Show all commits
+4 -1
View File
@@ -18,7 +18,9 @@ func init() {
process := mediamtx.NewSupervisor(os.Getenv("SENSE_MEDIAMTX_BINARY"), os.Getenv("SENSE_MEDIAMTX_CONFIG"), 3)
controller := mediamtx.NewHTTPController(valueOr("SENSE_MEDIAMTX_API", "http://127.0.0.1:9997"))
app.RegisterMigration(platform.Migration{Version: 2026081203, Name: "sense_media", SQL: media.MigrationSQL})
media.NewModule(media.NewService(store, process, controller)).Register(app)
service := media.NewService(store, process, controller)
media.NewModule(service).Register(app)
app.RegisterStartup(service.Restore)
return nil
})
}
@@ -28,3 +30,4 @@ func valueOr(key, fallback string) string {
}
return fallback
}