Skip to main content

Module camera_url

Module camera_url 

Source
Expand description

RTSP URL construction from vendor templates, plus credential masking.

Functions§

mask_url
Replace user:pass@ (or user@) 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.