Error: navigator.mediaDevices is undefined. It seems the current document is not loaded securely.
Navigate via address-bar to chrome://flags/#unsafely-treat-insecure-origin-as-secure in Chrome.
Find and enable the Insecure origins treated as secure section.
Add any addresses you want to ignore the secure origin policy for. (Include the port number if required.)
Save and restart Chrome.