Jedou ty stránky na HTTPS? Viz:
Note: If the current document isn't loaded securely, navigator.mediaDevices will be undefined, and you cannot use getUserMedia(). See Security for more information on this and other security issues related to using getUserMedia().
https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia