If you are using internal IPs e.g. 192.168.0.300 etc for development, you are likely to encounter this error when dealing with media devices.
Assuming that you are not using localhost for development for a reason, you can do either of the following
- In
Firefoxyou can enable the following two options described in https://stackoverflow.com/a/66605018/1805129. Go toabout:config
set to truemedia.devices.insecure.enabledandmedia.getusermedia.insecure.enabled
https://serveo.net/ to temporarily get https address. I learnt about these two services in the README file of https://www.npmjs.com/package/vue-qrcode-reader.