Skip to content

ONVIF credentials not consistently copied into stream URL #170

@irichter

Description

@irichter

Because stream URL generation is not centralized, the ONVIF credentials aren't always copied into the stream URL. For example, ensure_stream_registered_with_go2rtc() (in /src/video/go2rtc/go2rtc_integration.c) does pass the ONVIF credentials. However, mp4_recording_thread() (in /src/video/mp4_recording_core.c) and the API endpoint for /api/streams/test (handle_test_stream() in /src/web/api_handlers_streams_test.c) do not modify the URL to include credentials, causing them to fail.

Adding credentials directly to the stream URL (i.e. rtsp://user:password@device.fqdn.or.ip.address/streamName) does help with the places where they aren't copied, but breaks the code that does copy them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions