How to enable the front camera in web view? I have included functions in AndroidManifest.xml
<uses-feature android:name="android.hardware.camera" android:required="true" /> <uses-feature android:name="android.hardware.camera.front" android:required="true" />
The camera will not be used for taking photos or recording, just to turn on the front camera.
When I go to the website using the phone browser, the phoneβs camera works once, allowing the message. How does this work with web browsing?
The html file has a Canvas and Video tag that displays a webcam. He does not record or photograph, he simply shows you the view of the camera.
Here is the html code
<canvas id="inCanvas" width="500" height="500" style="display:none"></canvas> <video id="inputVideo" width="100" height="100" autoplay loop ></video>
It works with a webcam, but not with a webview in Android.
javascript android html webview camera
user3210416
source share