Please allow Access Camera (Webview)

I made a webview. on the web there is a barcode scan facility. but right when scanning there is an error message. how to allow the camera to webview to be able to scan barcodes. * Sorry My English

Buy you can use components to scan codes. So why webview.

there is an extension call look. it can use webcam