Skip to content

Commit

Permalink
Return credentials with stream uri #1355
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed Oct 2, 2024
1 parent 7bf958e commit ae31d52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/wyzebridge/onvif.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""<trt:GetStreamUriResponse>
<trt:MediaUri>
<tt:Uri>rtsp://{hostname}:8554/{profile}</tt:Uri>
Expand Down

0 comments on commit ae31d52

Please sign in to comment.