Expand description
RTSP URL construction from vendor templates, plus credential masking.
Functions§
- mask_
url - Replace
user:pass@(oruser@) credentials in an RTSP/HTTP URL with***for safe logging/display. - record_
url - The RTSP URL for the stream this camera records.
- stream_
url - Build the RTSP URL (with credentials) for the given stream (“main” | “sub”). Honors an explicit per-stream URL override; otherwise builds from the vendor template.
- validate_
stream_ url - Validate an operator-supplied stream URL: must parse and use an allowed scheme.