The link provided in the Security Offer allows you to use this function on the local host, or you can transfer these flags to Chrome, replacing example.comwith the site you need to access:
--unsafely-treat-insecure-origin-as-secure="http://example.com" --user-data-dir=/test/only/profile/dir
If you have the contents of the local file system that you are working with, you still have to run the web server on the local host, rather than directly contacting file://. An easy way to start a web server using python:
python -m SimpleHTTPServer 8080
inside the directory, then your content will be available on http://localhost:8080and getUserMedia()will work.
source
share