Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

Direct URL to webcam not working

Answered

Comments

8 comments

  • Norman
    • Network Optix team

    Hi @...,

    If you want to open a URL via a 3rd party application, you can use the Authentication & Encryption section of our server API. This won't be an authentication key that lasts forever, that would be insecure, but the nonce will remain valid for 5 minutes. 

    So if you want to make the life of the user as easy as possible, I would create and executable script that request the realm and nonce each time the script is used. 

    I don't know what the use case is for you, but as far as I know, with ffmpeg, you can stream your webcam without any authentication. 

    0
  • Permanently deleted user

    I just want to open it in a browser via an url.

    If I go in the webadmin > view > select camera > click in that windows on camera details > then I get a screen where you van make your weblink.

    If I select: use temporary key and set the time to 3000000 and then click on MJPEG link i get a link.

    I can use it anywere on every device it is working without loggin in, it works for hours.

    But every morning the link does not work anymore and I get the login screen again....

    Why is it not using the time that I set in the webadmin?

    0
  • Permanently deleted user

    The time you can set in the camera details panel is a position in the archive, it has nothing to do with authentication key lifetime. 

    The authentication key expires after fixed unused time. If you make requests repeatedly - you prolong it every time, but if you start playing MJPEG it is a single request to the server, so playing the stream does not prolong the authentication key, so it expires.

     

    You can try two things: do error handling, and generate new authentication key every time the stream fails, or periodically make some simple request to the server from the page to keep the key alive.

    Note: make sure you use a user with limited access, because both implementations exposes password or authentication key, and hackers can use it to make other requests.

    0
  • Permanently deleted user

    Thanks, that sounds like a good option.

    You understand I'm not a developer and I am trying things, but can you explain what kind of request I have to do to the server? Or what page I have to open or renew to prolong the expiration time? Or is it just opening the webadmin page?

    And how long is the time for 'fixed unused time'? Are that hours of minutes, just to know how often to make that request.

    0
  • Permanently deleted user

    I tried the link for mpeg, and indeed that does not the trick. It is now asking password again. I hope you can react on my previous remark. Thanks!

    0
  • Andrey Terentyev
    • Network Optix team

    Hello Kramer,

    > You understand I'm not a developer and I am trying things, but can you explain what kind of request I have to do to the server?

    I'm afraid it's not possible. If is given the answer will raise even more questions. The answer to your question is not about opening web pages and clicking options. The answer implies code examples, which in turns implies programming background of the reader.
    Giving programming fundamentals is out of the scope of this Developer forum.
    I'm really sorry, but I hope for your understanding.

    You can read these threads revealing authentication details.

    https://support.networkoptix.com/hc/en-us/community/posts/360052369293-Problem-in-getting-Archive-stream

    https://support.networkoptix.com/hc/en-us/community/posts/360049817434-server-login

    0
  • Permanently deleted user

    I understand, no problem!
    And there is no option to get the stream without user authentication?

    0
  • Andrey Terentyev
    • Network Optix team

    Hi,

    > And there is no option to get the stream without user authentication?

    No it's not possible.

    0

Please sign in to leave a comment.