Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capturing image with webcam

I'm working on a project with Asp.net MVC4. I need to take pictures with a webcam. This application should be configurable with any tablet. Currently runs the application on desktop, on tablets no.

I am using jscam.swf and jscam_canvas_only.swf.

On tablets I use this the Samsung Galaxy on these devices install adobe flash player to a well does not work ... someone knows some other technology to take pictures or if someone can help me solve this problem I'll be grateful

like image 850
raranibar Avatar asked Jul 15 '13 18:07

raranibar


People also ask

How do I capture an image in HTML?

The capture attribute is supported on the file input type. The capture attribute takes as its value a string that specifies which camera to use for capture of image or video data, if the accept attribute indicates that the input should be of one of those types. The user-facing camera and/or microphone should be used.


1 Answers

Flash has limited support on Android tablets and no support on iOS devices.

A better solution may be to move to 100% HTML5. When using HTML5, your browser has access to your webcam. Below are some links showing HTML5 accessing your webcam:

  • http://www.html5rocks.com/en/tutorials/getusermedia/intro/
  • http://www.iandevlin.com/blog/2012/06/html5/filtering-a-webcam-using-getusermedia-and-html5-canvas
  • https://developer.mozilla.org/en-US/docs/WebRTC/navigator.getUserMedia
like image 125
Matt Houser Avatar answered Nov 14 '22 23:11

Matt Houser