-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluecherry Web UI -> Devices Test authenication #645
Comments
For simple authentication checking we already have a function in lib/lib.php: public function checkConnection Perhaps a quick curl command: |
This function doesn't seem to care if the password is correct or not. Upon further investigation it appears that the camera's I tested will all pass this connection test because the test checks if the return status was Either this function needs to be rewritten or it is not used in testing authentication. |
How about using curl to check auth? |
Apologies for the late reply. Correct me if I am misunderstood in what you were trying to say I have tried using both the user flag The response from |
ffprobe can be given timeout value (but really that's libavformat option):
curl invocation is indeed deceptive as it returns 200 OK even with wrong credentials:
(the password is wrong) |
I suggest we call ffprobe with timeout option in it. RTSP demuxer takes timeout in microseconds: https://ffmpeg.org//ffmpeg-protocols.html#Demuxer I find what |
For the "Path to RTSP" and the "Substream path" we need a button that the user can click that verifies the connection to the RTSP source. ffprobe should be able to do that.
Right now when a customer adds a RTSP source (usually a camera) they will have no idea if the connection was established or not unless they look at the bluecherry.log or open the client, neither which is very efficient for someone who just needs to add a bunch of cameras and test the connections.
Running ffprobe with json output should provide enough details that we can report back to the user such as:
ffprobe will stall out if if the RTSP source is offline:
Thus it's better to 'ping' the IP before we attempt ffprobe.
Once a connection is established it would also be nice to return the resolution, fps and frame rate:
The text was updated successfully, but these errors were encountered: