mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-06 09:22:04 -04:00
ZoneMinder's RTSP server only starts when ZM_MIN_RTSP_PORT is set, and it defaults to empty. The go2rtc and Janus managers decided to use the restream from the monitor's RTSP Server flag (Janus: its restream flag) alone, so with the port unset they built rtsp://127.0.0.1:0/<name>. go2rtc was given that as the monitor's primary stream and as <id>_ZoneMinderPrimary, neither of which can play; Janus pointed its mountpoint at it. Use the restream only when the port is set as well, and warn when a monitor asks for it without one, so the camera's own stream is used. MonitorStream applies the same test before choosing the _ZoneMinderPrimary stream, which is no longer registered in that case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>