python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.44k stars 587 forks source link

JS module webcam.js not working in (--app) mode #313

Open saket13 opened 4 years ago

saket13 commented 4 years ago

Describe the problem I have used webcam.js in the html's JS section of the 'web' directory which takes photos from webcam and save it in the assets folder..This is working perfectly fine in the localhost mode as expected (in browser) but when used in the app mode (using --app in cmd line) , webcam.js is unable to work i.e it never starts on clicking the button....Why the JS module 'webcam.js(https://github.com/jhuckaby/webcamjs)' is not working in APP mode ??

Desktop (please complete the following information):

samuelhwilliams commented 4 years ago

Hi @saket13 - sorry for the slow reply. Did you get to the bottom of this?

If not, happy to help, but it would be useful if you could share your code/file structure/etc to help me debug.

saket13 commented 4 years ago

Project Structure:

images folder
python file
web (Folder for frontend)

HTML code including Webcam JS module -- https://gist.github.com/saket13/e346b222766102d70f7f23f2ed6aabf2