Windows Live Viewer..27-11-05 Now Complete Frontend for ZM!!

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

on playback (im assuming you mean playback) the infomation to retrieve the images is gathered from the sql db. I would suggest if your concerned you can use ipfiltering on the event dir i suppose
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

I use basic http auth here some times and it works fine. What problems are you having that it does not?
There are no problems:) It just works fine.

But I wonder how to use James's program with this authorisation. I'm also authorising cgi-bin directory with http basic. So James's viewer couldn't get images without authorisation. Do you now understand?
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

jameswilson wrote:on playback (im assuming you mean playback) the infomation to retrieve the images is gathered from the sql db. I would suggest if your concerned you can use ipfiltering on the event dir i suppose
Not only on playback. also on streaming - cgi-bin dir.
I think that http-basic authorisation is better. Many networks have dynamic ip addresses so ip filtering is not usable. We can also use ssh tunnel but it is too hard to many users. IMHO the http-basic with new zm option to retrieve logged user from apache is the best.
Maybe try to implement http-basic to your software? What do you think about that?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i dont really understand what you mean as there is some basic auth on streaming. Auth with out zms is on the list to do but i dont really understand how it works at the moment. And im concentrating on finishing and tidying existing features before adding major new ones. How could my app use auth on playback with zm, how would you normally authenticate users to those folders?

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

jameswilson wrote:i dont really understand what you mean as there is some basic auth on streaming. Auth with out zms is on the list to do but i dont really understand how it works at the moment. And im concentrating on finishing and tidying existing features before adding major new ones. How could my app use auth on playback with zm, how would you normally authenticate users to those folders?
http-basic authentication is not that one used in zms by passing user&pass as parameter.
I mean http-basic authentication which is described here http://httpd.apache.org/docs/1.3/howto/auth.html.
I prefer this than normal zm php authentication.
I hope you now understand:)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

I see. This looks possible to impliment, ill add it to the list, unfortunatly for you as its only 1 request its not a priority (priority at the moment is to support new 1.22 features) but i will add it as time allows.
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It's actually not that hard to do, if you can find a function to do base64 conversion. It's just a case of a bit of encoding and adding an extra header to each request. There is an example in zm_remote_camera.cpp if you want to copy it.
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

unfortunaly i uswed an image control that supported getting images form url's i dont actually download images anywhere in my code. Im looking at changing the class so my code actually downloads the images and then as im using the .net webrequest class i can pass auth infomation in that. Unfortunalty its a fair change as all image controls use the previous method. It looks like im gonna have to make some radical changes anyway to support this raw format anyway so i could put it in then, when i rewrite each camera module.
If i take this approach i will release a basic 4 way image viewer with this in and once proven rewrite zm4ms in the relevant places to work like this.
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

jameswilson wrote:I see. This looks possible to impliment, ill add it to the list, unfortunatly for you as its only 1 request its not a priority (priority at the moment is to support new 1.22 features) but i will add it as time allows.
Here I've found a little example, maybe this could help you if so
http://tiny.pl/mq9t

But remember the raw is the most important thing:)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

maciekc wrote: There are no problems:) It just works fine.

But I wonder how to use James's program with this authorisation. I'm also authorising cgi-bin directory with http basic. So James's viewer couldn't get images without authorisation. Do you now understand?
This type of authentication needs to be passed as user:password@Host instead of in the path string &user=user&pass=password.

Regards,
Corey
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

cordel wrote:This type of authentication needs to be passed as user:password@Host instead of in the path string &user=user&pass=password.
I didn't thought about that simple way, used in every program...
nraponi
Posts: 3
Joined: Tue Feb 21, 2006 8:27 am

Post by nraponi »

Can someone confirm the download link? I've been trying http://217.154.38.122:8080/version2/zm4msbeta.zip without success.

Thanks
Nick
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

I have just tested and it downloaded fine, whats happening your end?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
nraponi
Posts: 3
Joined: Tue Feb 21, 2006 8:27 am

Post by nraponi »

I am getting

"Cannot find server or DNS Error
Internet Explorer "

Odd. I'll try it from home tonight.

cheers
Nick
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

can you get it from where you are now?, it shuldnt be using dns as I dont have a domain name
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Post Reply