Webcam.js在Chrome浏览器中不起作用

问题描述 投票:0回答:2

我正在网站上实施webcam.js。我已经下载了脚本https://github.com/jhuckaby/webcamjs,该脚本在mozilla firefox浏览器中可以正常工作。但不适用于谷歌浏览器。请检查以下链接

http://beta.phygee.com/webcam-to-gif

enter image description here

请让我知道我的代码有什么错误:(

google-chrome webcam webcam.js
2个回答
0
投票

这是因为在Google crome中,您不允许在http中使用网络摄像头js,因此您必须使用适当的ssl,或者您可以使用其他浏览器(如firefox),也可以在i框架中调用它


0
投票

使用https而非仅使用http访问您的网站

© www.soinside.com 2019 - 2024. All rights reserved.