0👍
There are numbers of issues with getUserMedia:
-
Browser: You need to check if the browser you are using supports the
navigator.mediaDevices
. -
SSL: As you are running it locally, you need to make sure it is loaded securely on
https
. If you have a problem to setup SSL on your local machine, deploy it on Heroku or something similar.
Read more on getUserMedia: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#Security
Source:stackexchange.com