This commit is contained in:
legop3
2025-11-13 22:17:29 -05:00
parent d601e9aa82
commit 8c79c70520
26 changed files with 386 additions and 62 deletions
+3
View File
@@ -1,4 +1,7 @@
logLevel: info
api: yes
apiAddress: 127.0.0.1:9997
apiEncryption: no
webrtc: yes
webrtcLocalUDPAddress: :8189
webrtcLocalTCPAddress: :8189
+1 -2
View File
@@ -53,8 +53,7 @@ type BatteryConfig struct {
}
type MediaConfig struct {
WhepURL string `yaml:"whepUrl"`
StreamKey string `yaml:"streamKey"`
PublishURL string `yaml:"publishUrl"`
Manage bool `yaml:"manage"`
Service string `yaml:"service"`
HealthURL string `yaml:"healthUrl"`
+3
View File
@@ -22,6 +22,9 @@ func NewMediaSupervisor(cfg MediaConfig, logger *log.Logger) *MediaSupervisor {
if !cfg.Manage || cfg.Service == "" {
return nil
}
if cfg.HealthURL == "" {
cfg.HealthURL = "http://127.0.0.1:9997/v3/paths/list"
}
interval := cfg.HealthInterval.Duration
if interval <= 0 {
interval = 30 * time.Second
BIN
View File
Binary file not shown.
+2 -3
View File
@@ -15,9 +15,8 @@ battery:
urgent: 1650
maxWheelSpeed: 350
media:
whepUrl: https://mediaserver.local/whep/roomba-alpha
streamKey: roomba-alpha
publishUrl: https://control-server.local/whip/roomba-alpha
manage: false
service: mediamtx.service
healthUrl: http://127.0.0.1:9997/v3/paths/list/rovercam
healthUrl: http://127.0.0.1:9997/v3/paths/list
healthInterval: 30s
+2 -3
View File
@@ -15,9 +15,8 @@ battery:
urgent: 1650
maxWheelSpeed: 350
media:
whepUrl: https://mediaserver.local/whep/roomba-alpha
streamKey: roomba-alpha
publishUrl: https://control-server.local/whip/roomba-alpha
manage: false
service: mediamtx.service
healthUrl: http://127.0.0.1:9997/v3/paths/list/rovercam
healthUrl: http://127.0.0.1:9997/v3/paths/list
healthInterval: 30s