You could create an NPAPI plugin. That would be annoying for you and users. You could use flash. Or you could wait for the HTML5 Device Capture API (or whatever it becomes... http://www.w3.org/TR/html-media-capture/). It doesn't look like it is happening anytime soon though.