Hello requinix Sadly no, I cannot connect to the camera with basic auth, or at least I could not find any details on how to do that. It seams that basic auth is out dated.
I do see a lot of curl expamples and I tried loads, but none I found work with a camera behind a forwarded port like 554, using curl is quite common but as I understand it is reading via a html connection not rtsp. Of course I could also be wrong.
I use delphi mostly so PHP is mind boggling for me.
As I understand it, the camera is basically asking me to login.
How I send the login data is what I am stuck with.
So far I am creating a socket to communicate with the camera then perform a basic request "Describe" to the camera
Socket Create result: Success Sent to the Camera:DESCRIBE rtsp://IP:554 RTSP/1.0 CSeq: 1 The Camera Responded with
RTSP/1.0 401 Unauthorized CSeq: 1 WWW-Authenticate: Digest realm="Login to 3E072F5PAL00180", nonce="f683e059c7c09ca8511322793dc99d2c"
NONCE :f683e059c7c09ca8511322793dc99d2c REALM :Login to 3E072F5PAL00180
I then extract nonce and realm from the camera response into these parts $nonce and $realm, I think then I should combine these with the username, password and send back to the camera as a message to perform the login. It is that message that I am lost how to do.