webcamjs icon indicating copy to clipboard operation
webcamjs copied to clipboard

WebCam js not starting using electron-build on windows.

Open elissonlima opened this issue 7 years ago • 5 comments

I've developed a simple app using WebCamjs, and using command electron to start the app works well. But when I build the dist version using electron-build the Camera does not start and not displaying error.

elissonlima avatar Aug 15 '17 17:08 elissonlima

Can you provide a test case for us to run?

positlabs avatar Aug 15 '17 17:08 positlabs

Also, I should point out that since you are using Electron, you have Chromium built right into your app, so you don't really need WebcamJS. You could just use the HTML5 getUserMedia API directly, and you can be assured it will be available on all platforms, thanks to Chromium/Electron.

https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

Simple example here:

https://simpl.info/getusermedia/

Good luck!

jhuckaby avatar Aug 15 '17 17:08 jhuckaby

image

After I call the attach function the message "The camera has been started" is displayed. Then when I call the snap function, show that error. "Webcam is not loaded yet"

elissonlima avatar Aug 15 '17 17:08 elissonlima

do you find a solution for it?

IbrahimAliAsghar avatar Oct 25 '21 21:10 IbrahimAliAsghar

@elissonlima - any solution found?

elliotth30 avatar Jun 22 '22 14:06 elliotth30