This is an old revision of the document!


Online Web Camera

Introduction

Sahana uses Adobe Flash to provide online web camera interfacing. This provides the user the capability of capturing images of persons, on site and upload them to the required pages. The upload of images happens automatically.

The module developers should use the provided api to show the webcam interface as well as to obtain the uploaded image.

API Functions

The function shn_online_cam($image_id) is available in inc/online_cam/online_cam.inc. Once called it will render the flash gui which will communicate with the attached web camera of the client machine. This function should be passed a unique image_id (incase where multiple images are captured in the same page,) because this image_id is used to obtain the uploaded image file.

The function shn_online_cam_get_image_file_name($image_id) can be used to obtain the file name of the uploaded image, by passing the image_id given as mentioned above.


Navigation
QR Code
QR Code dev:onlinecam (generated for current page)