logoalt Hacker News

amagasakitoday at 1:51 AM1 replyview on HN

Could be interesting, but allowing the webcam crashes my browser.Repeatedly

macOS 15.7.1 (24G231) Brave 1.87.186 (Official Build) (arm64) Chromium: 145.0.7632.45


Replies

serious_angeltoday at 2:05 AM

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/

show 1 reply