I have built an electron app that uses the camera, via getUserMedia
. When I build the app in the development environment (with the electron
cmd), the Ecamm Live virtual camera works fine. However, when I build for production with electron-builder (with hardened runtime and notarization), Ecamm Live no longer shows up in the production app. I am building and testing in macOS.
I am using navigator.mediaDevices.enumerateDevices()
to list the devices. Other physical cameras work in the production app, just not virtual cameras such as Ecamm Live.
Any idea what's going on? I have upgraded the Electron version to 9.1.0, as I had read that there were some changes in Chrome >80 that might affect this, but that didn't help. FWIW, the camera appears fine in my Chrome app.