谷歌浏览器只支持https, 127.0.0.1,localhost三种地址方式调用摄像头,http方式不支持直接调用。
解决方法:步骤1.在地址栏输入chrome://flags/
步骤2.搜索找到Insecure origins treated as secure属性
步骤3.添加不安全网址ip或者域名,并设为可用