Chromium doesn't allow a website to access a user's camera unless the page is hosted in a "secure context". Usually that means a web server that has a valid TLS (HTTP) certificate, but there's also an exception for localhost
.
I'm working on an app that needs to stream video within a LAN, and I'd like to have the webserver hosted within the LAN, as well, but it's not clear to me how to set this up so that the server is considered a "secure context". Is there a reasonable way to use TLS certs with zeroconf/bonjour hostnames? Or some other way to mark the whole LAN as trusted?