6

Is it possible to capture an image using Android camera via browser with PHP or another Library for PHP? I know it can be done by phone gap, but I'm trying to do it with PHP. Because my other Project using PHP too.

Can Anyone help me to find the solution?

MudMan23
  • 821
  • 3
  • 10
  • 17

1 Answers1

6

I found that it's possible for Android 3.0+ devices. It launches the camera, and when the picture is taken returns the the page. Source: https://stackoverflow.com/a/7811843/1536522

<input type="file" accept="image/*;capture=camera">
Community
  • 1
  • 1
rx_tx
  • 190
  • 1
  • 5
  • I have been reading Source: http://stackoverflow.com/a/7811843/1536522 and trying too your solution, but the camera still can't automaticly start after i click the upload button. the html 5 : is not work on my gingerbrad tablet camera. is there any solution? – MudMan23 Jul 20 '12 at 02:49
  • 1
    The article mentions that your device needs to run Honeycomb or better (3.0+). Gingerbread is 2.3 and will not work unfortunately. I tested on my Jelly Bean phone (4.1) and it opens the camera when I click "Browse". – rx_tx Jul 24 '12 at 03:24
  • I use something like CloudCam which includes it's own simple http server then you just link to the second url for the cloudcam server – Scott Sep 18 '14 at 18:48