I am trying to pull the RTSP stream from our NX server 5.1 using VLC player from C#. I have enabled the digest authentication for the viewing user.
at first, when using basic authentication (RTSP://user:pwd@....) it works fine for certain amount of time, then the authentication fails. if retype the same password for the user in NX, it works again for sometime. I also noticed the "rejection" happens more quick when pulling multiple RTSP streams.
then I tried to use the digest authentication, tried either the way described in the API doc for V1,
Sending request: OPTIONS rtsp://192.168.10.21:7001/5dc2e101-6f09-9f44-0fc1-90df4264da87?auth=ZHN4Ompyalk3ekhGSGVmaFJ4MTFmRi9iTHdmc3lrSHVRMD1oemNmZGM6NWFkODBlZGMyMmMxYzVkMmQwY2ZlN2RhOWJiMTI0ZjY= RTSP/1.0
User-Agent: LibVLC/3.0.18 (LIVE555 Streaming Media v2016.11.28)
Received 359 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 401 Unauthorized
Date: Fri, 08 Sep 2023 06:32:00 GMT
WWW-Authenticate: Digest realm="VMS", nonce="jrjY7zHFHefhRx11fF/bLwfsykHuQ0=hzxnzk", algorithm=MD5
Please sign in to leave a comment.