Reputation: 907
I have a requirement to capture an image from a webcam and I came up with a few solutions myself too. but there are a few conditions in the way I achieve this result. They are:
I tried a few solutions from codeproject and other websites, none I came across satisfies my conditions.Does anyone have any idea what to do ??
Upvotes: 2
Views: 493
Reputation: 1641
This is not possible to do using a browser with HTML 4 and/or javascript. All browsers run in a restricted space known as the sandbox.
In computer security, a sandbox is a security mechanism for separating running programs. It is often used to execute untested code, or untrusted programs from unverified third-parties, suppliers, untrusted users and untrusted websites.
The only way you could capture something from a web cam would be to have client software running that connects to the camera, grabs a still, and then uploads the image to a web site, web service, or web api.
Upvotes: 1