jhuckaby / webcamjs

HTML5 Webcam Image Capture Library with Flash Fallback
MIT License
2.5k stars 1.11k forks source link

photoCam doesn't work unless you DON'T allow the use of the camera #280

Open jrcampins opened 6 years ago

jrcampins commented 6 years ago

I'm testing a web app built with PrimeFaces 6.1. The app server is installed in my own computer (localhost). The photoCam component doesn't work unless I don't allow localhost to use the camera. If I click "Allow" when Firefox asks "Will you allow localhost to use your camera?" then the component doesn't show any video feed. The component is always blank. I take the picture, and I get a blank image. There are no error messages but it doesn't work. If I click "Don't Allow" instead, then the component works just fine.

This is happening running the app using Mozilla Firefox 62 with Shockwave Flash 30.0.0.154. The OS is Windows 10. The app works fine when run with Google Chrome 68 or Internet Explorer 11.