I can't give you an example, because I don't know how your camera works off the server.
I doubt JS has anything to do with its control or access other than providing a form.
You should know how your page is accessing the camera, and how your server is providing such access, from that you should be able to determine how to set a usage flag that can be set or read each time the camera is accessed.
But I can't get any more specific than that as I have no idea what internal workings are making the camera access possible.
----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
Behind the Web, Tips and Tricks for Web Development.