Html5 can only call photo albums but not cameras?

problem description

<input id="uploaderCustomInput" multiple name="image[]" class="weui-uploader__input js_file" type="file" accept="image/*">

cannot call the camera under android?

the environmental background of the problems and what methods you have tried

vux development, package with cordova

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

want to pop up camera and photo album options


if Android calls the camera, you need webview , that is, App to support it. You can take a look at this article https://blog.csdn.net/villa_m..

Wechat or other browsers can take a look at the properties capture https://www.w3.org/TR/html-me.

.

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


just remove the accept setting. The latest kernel setting goes directly to the camera and there is no photo album to choose from.

Menu