Page 1 of 1

Source Code for Viewing

Posted: Tue Aug 19, 2008 2:37 am
by breadfan311
Hi,
I have installed zoneminder with axis camera and the outcome is great. I am very interested on how the viewing of the live camera in done in zoneminder. Currently Iam trying to develop a small project by using php, to have a small screen inside the interface and have the picture taken and ftp to my server and I am not sure whether I can borrow the source code for this feature from zoneminder. If I can, where can I view the source code and is zoneminder develop using php. Your help is much appreciated. Thanks!

Posted: Tue Aug 19, 2008 2:53 am
by cordel
Zoneminder is C, C++, Perl, BASH, and the interface is php.
As to the rest of you questions you will need to talk to Phil.

Posted: Mon Sep 01, 2008 1:12 pm
by zoneminder
Viewing is done via the zms cgi process. This can generate mpeg, mpjpeg or single jpeg streams. There are a number of php functions which help generate the correct url parameters to pass depending on the type of stream requested and the capabilities of the browser.

The simplest thing to do is probably to look at zm_html_view_watchfeed.php, which is quite a small file, and go from there.