From 94fc4cb8a2f355d3e470930992a0b1d9255d9ccc Mon Sep 17 00:00:00 2001 From: Seongnoh Sean Yi Date: Mon, 13 May 2019 21:19:50 +0200 Subject: [PATCH] allow html5 autoplay policy From Chrome 66, autoplay policy is changed. This 1 line can help to play html5 audio and video without user-gesture-allowance in MagicMirror --- js/electron.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/electron.js b/js/electron.js index fc6ab98e..21d8be8a 100644 --- a/js/electron.js +++ b/js/electron.js @@ -17,6 +17,7 @@ const BrowserWindow = electron.BrowserWindow; let mainWindow; function createWindow() { + app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required'); var electronOptionsDefaults = { width: 800, height: 600,