How to access mobile camera via Web Site?

Asked

Viewed 3,227 times

3

It has to access the camera of the mobile phone in a web system(Não é app) using javascript?

  • What is the solution to this?
  • Set up my answer Igor, I tested it and it worked!

  • Okay. I’ll test, thank you Marconi!

2 answers

3


Here in this answer How to access a mobile’s camera from a web app?

On iPhone iOS6 and Android ICS onwards, HTML5 has the following tag, which allows you to take photos from your device:

 <input type="file" accept="image/*" capture="camera">

capture can have values like camera, camcorder and audio.

  • So, I would like to access the feature(Camera) direct, without having to select the image.

1

Html5 allows this by using the tag

capture="camera"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.