简体   繁体   中英

how to open camera using javascript and html5 in android?

could you please tell me how to open camera using javascript and html5 in android ? I saw https://m.facebook.com/ on my android phone when I click on photo button it gives me camera option so how I will achieve the same functionality in our application

I saw this

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

but it not work only for me it open only the gallery where I select only image .there is no option of camera

https://www.html5rocks.com/en/tutorials/getusermedia/intro/

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

你忘了标记输入标签。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM