Skip to main content

How to setup dynamic live stream using https instead of rtsp?

Answered

Comments

3 comments

  • Andrey Terentyev
    • Network Optix team

    Hello,

    Here are options possible for adding a device

    - ONVIF via auto discover or manually via HTTP

    - motion jpeg stream via HTTP

    - RTSP stream

    - UDP

    That means, an RTSP stream added with the

    "url": "rtsp://<central-nx-witness-host>/media/0035f839-fdaa-fd98-7e29-b6cb4d8029a9.webm?resolution=720p&pos=0"
    "ip": "rtsp://<user>:<pass>@<central-nx-witness-host>/media/0035f839-fdaa-fd98-7e29-b6cb4d8029a9.webm?resolution=720p&pos=0"

    won't ever work, because the url provides and HTTP streaming interface, while you're trying to request the steam via RTSP protocol.

    Regarding media interfaces of the Server

    In your system of two Server, you could address your requests to the "streaming server" (in your terms) for the cameras as if they are connected locally to the "streaming server". The Server knows what Server in the system to pull the video stream from.

    In other words, a request looking like

    "rtsp://<user>:<pass>@<streaming-server>/<camera-id>?resolution=<resolution>&pos=<pos>

    will return a stream from the camera with camera-id actually connected to central-nx-witness-host.

    The proxying happens internally and seamlessly.

    0
  • PhyaeSoneThwim

    Thank you for your answer, Andrey Terentyev. However, based on our infrastructure setup, the central and streaming servers will not be on the same VLAN. The infrastructure team has configured the HTTPS domain for the central NX server, and they are reluctant to expose RTSP due to security concerns.

    Consequently, we attempted to send the RTSP request via the HTTPS domain, but encountered an error indicating that the RTSP URL was not found. And I updated the code to request the streaming device information using the HTTPS URL with the appropriate parameters.

    Unfortunately, the response from the devices is empty, and as a result, we are unable to establish live streaming from the central server via the streaming server.

    0
  • Andrey Terentyev
    • Network Optix team

    Hi,

     The infrastructure team has configured the HTTPS domain for the central NX server, and they are reluctant to expose RTSP due to security concerns.

    All the inter-server communication (including internal stream proxying) is performed via the TCP port 7001.

    You should ask your infrastructure team to enable not HTTPS with is TCP 443 by default, but communication via TCP port 7001.

    0

Post is closed for comments.