151
rated 0 times
[
158]
[
7]
/ answers: 1 / hits: 15622
/ 8 Years ago, fri, june 3, 2016, 12:00:00
How to access user's camera from the main process (i.e. main.js
) in Electron, without opening a window?
More From » electron
How to access user's camera from the main process (i.e. main.js
) in Electron, without opening a window?
No. There are a number of APIs that have to be run in the renderer process, such as Notifications, and it looks like accessing a camera is one of those. If you don't want to actually show a BrowserWindow, pass the show:false
option (documented here)
Here's a sample app using the camera: https://github.com/hokein/electron-sample-apps/tree/master/camera.