So I’m not sure what’s going on with mine because it won’t autostart. I did all the changes suggested and below is a copy straight out of the MagicMirror/js/electron.js file.
I’ve restarted it many times.
Before I edited it it had everything there except
'autoplay-policy', 'no-user-gesture-required'
was
"autoplay-policy", "no-user-gesture-required"
let mainWindow;
function createWindow() {
app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required'); //< -------- added
var electronOptionsDefaults = {
width: 800,
height: 600,
x: 0,
y: 0,
darkTheme: true,
webPreferences: {
nodeIntegration: false,
zoomFactor: config.zoom
},
backgroundColor: "#000000"
};