H5 mobile phone realizes the combination of camera and photo album picture selection function.

problem description

the company"s product demand, very DT, wants to combine photography with album selection functions. When I click the select file button, I call up the camera, and then the camera screen can choose to enter the album, as shown in figure:

.

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

h5:

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?

is to click a trigger button, how to call the camera that comes with the phone? I can also choose a photo album when I take a picture. I want to achieve the effect of picture 1

Aug.30,2021

requirements go back directly. Implementation involves nativeness and cannot be done.


you can only use < input type='file' accept='image/*' >

Menu