Open willesandstrom opened 8 years ago
I don't have access to a Windows 10 machine. Can someone please try these steps:
Do any of those work with your webcam?
Hi, I checked the URLs on two systems:
Android 5.1 system with Chrome 54
Windows 10 system with Chrome 54
Thank you @Kephson for the tests, and @williamsandstrom for the bug report. Looks like we really do have a bug in WebcamJS with Windows 10 and Chrome 54. I'll see what I can do about this.
Any updates @jhuckaby ? :)
@williamsandstrom Sorry for the delay on this. Work and life keep getting in the way. I'm still trying to find the time to upgrade my Windows PC to Windows 10, so I can reproduce this.
My gut feeling is that this has something to do with the default constraints
passed to the media API. For reasons I cannot remember (compatibility with some browser or OS or another) I had to specify some mandatory minimums for the video. I'll bet this fix will involve loosening the constraints, maybe just specifying a simple width and height, vs. those "mandatory" ones.
Maybe try something like this before calling attach:
Webcam.set( 'constraints', {
width: 1280,
height: 720
} );
Or whatever size you want.
Reference: https://github.com/jhuckaby/webcamjs#custom-user-media-constraints-advanced
I just tried the Basic Demo in latest Chrome. It works.
Hi, I checked the URLs on windows 10 Home systems:
https://simpl.info/getusermedia/ -> no works https://davidwalsh.name/demo/camera.php ->no works https://www.onlinemictest.com/webcam-test-in-adobe-flash ->no works http://www.xarg.org/project/jquery-webcam-plugin/ -> no works https://github.com/amw/jpeg_camera -> no works
@williamsandstrom Did you resolve the problem ?
When starting webcam capture to a
<div>
, it stays blank, but Chrome indicates that is is using the webcam and the webcam LED on my computer is on. When calling the snap() function, Chrome freezes completely and needs to be shut down from task manager.Currently running Chrome 54.0.2840.87 on Windows 10. Started happening last week.
Try the basic demo and see what happens: https://pixlcore.com/demos/webcamjs/demos/basic.html