在chrome中不支持getUserMedia() [英] getUserMedia() not supported in chrome
问题描述
我尝试使用getUserMedia()使用我自己的网站访问我的网络摄像机,该网站使用我自己的IP地址运行。
它工作正常,直到我尝试了我的网站再次。我曾尝试过其他演示网站,并且给出的错误是getUserMedia不支持。
Chrome版本v47.0.2526.80m 32位
如果我输入localhost而不是我的ipadress,我可以访问摄像头。它也可以在Firefox中使用。
Chrome需要getUserMedia的安全起源(HTTPS)。
从Chrome 47开始,getUserMedia()请求仅允许来自安全源:HTTPS或本地主机。
https://developers.google.com / web / updates / 2015/10 / chrome-47-webrtc?hl = zh_CN
I am trying to access my webcam using the getUserMedia() using my own website that run using my own ip address.
it was working fine until i tried my website again. i had tried the other demo site and the error given was getUserMedia is not supported.
Chrome version v47.0.2526.80m 32bits
I am able to access the webcam if i enter localhost instead of my ipadress. it also work in firefox.
Chrome is requiring secure origins (HTTPS) for getUserMedia.
Starting with Chrome 47, getUserMedia() requests are only allowed from secure origins: HTTPS or localhost.
https://developers.google.com/web/updates/2015/10/chrome-47-webrtc?hl=en
这篇关于在chrome中不支持getUserMedia()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!