2

I would like to develop a web app for mobile and need to access iphone camera from the web browser without native mobile app.

I don't want to take a picture and upload one from my album.

Can I capture video-cam using iphone? If I can not do this, please give me any suitable suggestions to do this. Thanks for any help

KBH
  • 1,887
  • 2
  • 11
  • 11
  • 1
    @yuriy636 - The browser compatibility table there says this isn't possible. – BSMP Aug 17 '16 at 18:07
  • Possible duplicate of [How can I access iPhone or Android camera using HTML5?](http://stackoverflow.com/questions/10345973/how-can-i-access-iphone-or-android-camera-using-html5) – BSMP Aug 17 '16 at 18:07
  • According to [caniuse](http://caniuse.com/#feat=stream) the answer at the duplicate hasn't changed much. – BSMP Aug 17 '16 at 18:08
  • http://stackoverflow.com/questions/2607067/can-you-access-the-iphone-camera-from-mobile-safari – yuriy636 Aug 17 '16 at 18:08

1 Answers1

2

You can use a file input and then parse the file they upload: <input type="file" accept="image/*">. On iOS, you get the option to take a picture.

csander
  • 1,385
  • 10
  • 11