Can web modify the pop-up interface of the mobile phone calling camera?

now I want to use web to achieve the effect of the above image. I found that using the following code directly is to jump to the image interface of the system directly. I don"t know if I can achieve the effect on the way.

<input type="file" apture="camera"></input>
Mar.28,2021

the pit in this is very terrible.

mainly uses MediaDevice.getUserMedia .

The

interface aside, it is important to note that the compatibility of this thing is very poor, for example:

you need to pass configuration parameters when creating. In most cases, you can specify the resolution as described in the document:

  here  is a page for testing interface availability. 

because I am not a front-end developer, this compatibility problem has tormented me so that I can no longer delve into it. Maybe my test methods or results are wrong. If you have friends who know the situation, please trouble to point out the mistakes. Thank you!

Menu