I am a student at the launchbase bootcamp and I am also studying Systems Analysis and Development at UTFPR, and this week I used this project to create a video for the presentation of a college work.
The transparency behind the video, a common problem and not solved by electron, was solved by me just commenting on the part of specifications of the camera after the downgrade of the electron version.
I also had to add some flags that I googled, next to the project's initialization alias.
Here is my JSON file, working at Ubuntu 20.04:
{
"name": "mini-video-me",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"start": "electron --enable-transparent-visuals.",
"build": "npx electron-packager. --icon img / webcam.icns --overwrite"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"electron": "^ 7.3.3"
},
"devDependencies": {
"electron": "^ 7.3.3"
}
}