Pouzivas inspect v prehliadacoch? Celkom jasne ti tam pise:
Kód:
getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.