Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : Re: IP Camera

www.cryer.info
Managed Newsgroup Archive

Re: IP Camera

Subject:Re: IP Camera
Posted by:"PGS" (pgueva..@lartec.es)
Date:Tue, 15 Jan 2008 11:05:07

The solution is a little complicated.
For authentication I used the idHTTP control. The problem is that the cam
response is a stream that never ends, so the "Get" method never returns. To
be able to parse the response I had to overwrite the "TMemoryStream" class
overriding the "Write" method. Within that method is where you have to parse
the buffer to catch the frames.
Another very important detail is that to be able to close the reception, the
only way I found was raising an exception which let you leave the "Get"
method.
Finally, depending on how your application is working, keep in mind that you
have to refresh your application screen.

Anyway, if you want a simpler solution with lower performance, you can get
the frames from the cam using the cgi "/axis-cgi/jpg/image.cgi" (read the
documentation from Axis).

Hope this help you

"Luigi Amorini" <luigi.amorini@ilgiorno.it> escribió en el mensaje
news:478ba2ce$1@newsgroups.borland.com...

Hi,

I'm using a procedure that use idTCPClient to connect to IP Camera to
capture image flow but some web server of IP Cameras needs basic
authentication (username and password pop-up) and i need to use idHttp to
make this but I don't understand how to use that component togheter to
accomplish this work.

Thanks for any help


-----------------------
Luigi Amorini

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive