3 ms·
In the minified source code, we may see, it uses: ``` try { const l=await navigator.mediaDevices.getUserMedia({audio:!1,video:{facingMode:"user"}}); /* ... */
by serious_angel 8mo ago
In the minified source code, we may see, it uses:
```
try {
const l=await navigator.mediaDevices.getUserMedia({audio:!1,video:{facingMode:"user"}}); /* ... */ } catch { this.showError("Could not access webcam. Please check permissions.") }
```
There are alternatives to verify mediaDevices support as https://addpipe.com/getusermedia-examples/ https://addpipe.com/getusermedia-examples/
- echoangle 8mo agoBut even a missing check shouldn’t be able to crash the browser.