5.1 RTSP stream authentication failed using digest method
AnsweredHi Support,
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
CSeq: 2
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
Access-Control-Allow-Origin: *
Connection: Keep-Alive
Content-Length: 0
CSeq: 2
Date: Fri, 08 Sep 2023 06:32:00 GMT
Keep-Alive: timeout=5
WWW-Authenticate: Digest realm="VMS", nonce="jrjY7zHFHefhRx11fF/bLwfsykHuQ0=hzxnzk", algorithm=MD5
X-Auth-Result: Auth_Forbidden
X-server-guid: {a19aac25-59f5-3948-0a0f-eef8702a2eff}
-
Hello,
I am trying to pull the RTSP stream from our NX server 5.1 using VLC player from C#.
I don't understand quite well what are you trying to do, but have you tried to open a stream directly in VLC?
Media->Open Network Stream...
Please try this code example
Does it work with your creads and you server?
Please sign in to leave a comment.
Comments
2 comments