Follow

Do I really need to serve my site with https?

You must access your website/web application served from a secure origin (HTTPS or local IP) in order to access video camera video streaming due to browser restrictions. For development purposes, you can set up a self-signed certificate, proxy, or just quickly set up a service like ngrok to instantly get a secure URL to your localhost server.

In the event you cannot use one of the above solution with your development servers, you may remove the https restriction on your test devices:
On Chrome: Configure the flag: chrome://flags/#unsafely-treat-insecure-origin-as-secure
On Safari: Enable in the menu: Develop > WebRTC > Allow Media Capture on Insecure Sites

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request