Nx 5.0 RTSP Stream Authentication Fail
AnsweredHello,
I am using Nx Witness 5.0.0.34969.
I failed to open the RTSP streaming URL, which I got from API document as below.
rtsp://<server_ip>:<port>/<deviceId>
I found that when I allow digest authentication for the user. I can use this user on RTSP authentication and open the RTSP stream successfully. However, if I do not allow digest authentication, it doesn't seem to work.
What should I do to pass RTSP authentication with disabled digest authentication user to request RTSP stream?
Thank you for your help.
-
Hi Yihsuan Hsueh,
If you don't use the digest authentication, you should use the default bearer authentication instead.
-
Hi Yihsuan Hsueh,
The documentation is shown in the Nx WebAdmin under the API documentation:
- Click on the Sever name.
- Select API documentation.
- Select API Information.
- Scroll down for the Authentication section.
Here you will find all information regarding Bearer Authentication.
For the full documentation about Bearer Authentication, please check the RFC 6750.
-
Hi Norman (Yihsuan_Hsueh),
Sorry to interrupt your discussion, but I would like to know how to use bearer token to play RTSP stream from Nx server ver.5.0.
I understood how to generate bearer token from Nx server, and there are sample codes how to use token for HTTP request on the API documentation, but I couldn't find how to use it for RTSP stream.
Could you share sample code to do it? (ex. gstreamer script to do it)
Thank you.
Please sign in to leave a comment.
Comments
5 comments