navigator.mediaDevices.getUserMedia只有在https或者localhost下使用。
如果需要再http协议下使用navigator.mediaDevices.getUserMedia,需要打开不安全的配置。
火狐浏览器打开多媒体不安全的配置:
chomre打开不安全配置:
浏览器输入chrome://flags/
搜索Insecure origins treated as secure
填入想要放开的域名:
navigator.mediaDevices.getUserMedia只有在https或者localhost下使用。
如果需要再http协议下使用navigator.mediaDevices.getUserMedia,需要打开不安全的配置。
火狐浏览器打开多媒体不安全的配置:
chomre打开不安全配置:
浏览器输入chrome://flags/
搜索Insecure origins treated as secure
填入想要放开的域名:
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。