diff --git a/app/wyzebridge/onvif.py b/app/wyzebridge/onvif.py index 489cf791..e0df13f8 100644 --- a/app/wyzebridge/onvif.py +++ b/app/wyzebridge/onvif.py @@ -410,6 +410,8 @@ def get_profiles(streams): def get_stream_uri(profile): hostname = env_bool("DOMAIN", urlparse(request.root_url).hostname or "localhost") + if WbAuth.enabled: + hostname = f"wb:{WbAuth.api}@{hostname}" return f""" rtsp://{hostname}:8554/{profile}