The problem is that you are using navigator.mediaDevices.getUserMedia from a non-secure page. So you are getting an error about navigator.mediaDevices being undefined. Check in your developer tools console and you will see the error.
navigator.mediaDevices.getUserMedia
For more details on the security for getUserMedia follow this link: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#security
getUserMedia
1.4m articles
1.4m replys
5 comments
56.9k users