Authenticating when connecting to MjpegStream #2099
Unanswered
Rodgers-PAC-Lab
asked this question in
Q&A
Replies: 1 comment
-
Looking at the AForge implementation they expose this property that may do what you want (?). Does it looks familiar against the other APIs you are using? https://github.com/cureos/aforge/blob/f492924fd60fc8cdf8f783733bbb5c120ce5c92a/Sources/Video/MJPEGStream.cs#L70 I haven't tried it, but I think the easiest way to test it is to make a local extension that overrides the IVideoSource of this file: https://github.com/bonsai-rx/video/blob/master/Bonsai.Video/MjpegStream.cs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, thank you for this cool project which has been very helpful for our work. I am presently trying to connect to a video stream but having some kind of authentication issue. The video stream is being served by video software (White Matter LLC e3vision) running on a computer on my LAN. When I visit https://192.168.11.121:4343/api/stream/http?c=e3v8303&t=1736462019847 in a browser, then I am able to view the video in my browser, although first I'm redirected to a login page to provide my username and password. My browser shows the "broken lock" icon because I don't have any security certificate for this local machine, but the video feed works.
In Bonsai, I'm getting a connection issue. I created a source called MjpegStream and I put the above URL in the "url" attribute, leaving username and password blank. I receive the message "Runtime Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel." I have tried adding my username and password to the appropriate boxes, but I always get the same message. I have feeling the problem is the lack of a certificate, not the password itself. I can connect to this same machine using Python by providing the username and password using requests.post.
Is there any way to tell Bonsai to proceed and ignore certificate errors? Am I on the right track here? I would welcome any tips. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions