Click here to Skip to main content
11,920,641 members (56,650 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# audio-video graphics
Hi Andrew,

I have written an application which uses DirectShow to read the stream from an Axis camera, which works really well. However, when we switch security on in the camera, when we try to connect we get a login dialog box that pops up. Do you know if there is a way we can pass the login credentials through code so that this does not appear.


Posted 16-May-10 23:29pm
Edited 17-May-10 7:41am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I would suggest that you are more likely to get a valid answer if you ask the question on the Web site of the camera manufacturer.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Axis has an SDK that they call the Media Parser SDK that is a little hard to get... You have to jump through some hoops, but it lets you do that and more. You need to contact Axis to see if they will supply you with the SDK.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Thanks for the two comments above. I want to develop something that is camera agnostic, and therefore using the SDK would not work as they are specific to axis cameras (although they are very good). Axis do provide DirectShow filters as well, although they don’t provide support for them. These work pretty well, but when authentication is switched on in the camera, it pops up the dialog.
Henry Minute 18-May-10 8:14am
In that case, it seems to me that you might be banging your head against a brick wall since it is likely that different camera manufacturers would implement their security features in different ways. After all one of the main points about security is er....... security, and if there were a simple way to circumvent it, it would be useless. You might have to have a 'database' of login routines for different manufacturers in order to get round this.
Member 2065437 18-May-10 8:28am
I appreciate that there is a need for security, and I am not trying to circumvent it, just trying to pass in the login credentials in a programmatic way rahter than having to type it in each time.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 548
1 Dave Kreskowiak 245
2 phil.o 170
3 KrunalRohit 134
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,203
3 George Jonsson 2,815
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web03 | 2.8.151120.1 | Last Updated 18 May 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100