Asuni minimalist webcam viewer, powered by Electron
The first time, if there are more than one camera, a simple list with the detected devices will be shown. Just use numbers (1-9) to select the video input. Its ID will be stored at %APPDATA%/asunicam/config.json.
If you delete this file the software will ask you again when detected multiple video inputs. Anyway you can change the input using numbers (1-9) at any time if the devices are still plugged. When you select a device, the configuration file is updated, so the next time you execute the app the last video device will be used.
Just quit the app with ESCAPE key.
- Install Node.js (You can use also: scoop install nodejs)
At the project root do:
npm install
npm start
Use npm to install following development dependencies (project root). I used Visual Code for debugging.
npm i -D electron@latest
npm install --save electron-config
You need all development prerequisites plus electron-packager, install it. The -g option will enable the packager be executed from command line.
npm install electron-packager -g
And remember to install all needed dependencies before package build. At project root do:
npm install
electron-packager ./ AsuniCam --platform=all --arch=all --electron-version=2.0.0
electron-packager ./ AsuniCam --platform=win32 --arch=ia32 --electron-version=2.0.0
electron-packager ./ AsuniCam --platform=win32 --arch=x64 --electron-version=2.0.0
electron-packager ./ AsuniCam --platform=darwin --arch=all --electron-version=2.0.0
electron-packager ./ AsuniCam --platform=linux --arch=ia32 --electron-version=2.0.0
electron-packager ./ AsuniCam --platform=linux --arch=x64 --electron-version=2.0.0