Read the statement by Michael Teeuw here.
electron.js HELP
-
@Manu85 u can get the original back.
erase electron.js or rename it
Then
cd ~/MagicMirror
git checkout js/electron.js -
@sdetweil thank you very much, it restarted !!!
I was trying to fix an error on the module of @ mykle1 which recommended the following thing:},
Electron may hinder the use of autoplay. Known issue.
This will fix it
Edit MagicMirror/js/electron.js
Add the line shown below
let mainWindow;function createWindow() {
app.commandLine.appendSwitch(‘autoplay-policy’, ‘no-user-gesture-required’); //< -------- added
Save and restart MagicMirror -
@Manu85 u don’t need that. We added it a couple releases ago
-
@sdetweil ok, the module crashes from time to time and I have a message telling me that I have an update problem (something like that) and I have a photo of the horizon with a sunset
-
@Manu85 could you be a little more specific on the error… if using pm2 to start, show the part in the output from
pm2 logs --lines=100
the line
app.commandLine.appendSwitch(‘autoplay-policy’, ‘no-user-gesture-required’);
only applies to video or audio files
-
@sdetweil you know me well :-)
-
@sdetweil
I don’t see this line!app.commandLine.appendSwitch(‘autoplay-policy’, ‘no-user-gesture-required’);
-
@Manu85 ver 2.11 direct from github
function createWindow() { app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required");
I added that in ver 2.8 last year
-
@sdetweil Thank you for your answer