gal007 gal007 - 2 years ago 112
Javascript Question

How can I access the notebook camera from firefox addon?

I really need my addon can access the notebook camera if it does exists.

Answer Source

In order to access the webcam in Firefox (and more generally in supporting browsers), you should use navigator.getUserMedia

Prompts the user for permission to use a media device such as a camera or microphone. If the user provides permission, the successCallback is invoked on the calling application with a LocalMediaStream object as its argument.

Here is a tutorial on MDN about taking webcam photos.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download