From 94fc4cb8a2f355d3e470930992a0b1d9255d9ccc Mon Sep 17 00:00:00 2001 From: Seongnoh Sean Yi Date: Mon, 13 May 2019 21:19:50 +0200 Subject: [PATCH 1/3] 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, From ef9576f8c48aeb04401daf929352762e491fdf18 Mon Sep 17 00:00:00 2001 From: Seongnoh Sean Yi Date: Mon, 13 May 2019 21:26:28 +0200 Subject: [PATCH 2/3] Fixed:allowance HTML5 autoplay From commit: https://github.com/eouia/MagicMirror/commit/94fc4cb8a2f355d3e470930992a0b1d9255d9ccc --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8571e72f..c72d0f0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Update `ical.js` to solve various calendar issues. ### Fixed +- Allowance HTML5 autoplay-policy (policy is changed from Chrome 66 updates) - Handle SIGTERM messages - Fixes sliceMultiDayEvents so it respects maximumNumberOfDays From 3796076360de884a8cf58ac13e7b2e521a09bfca Mon Sep 17 00:00:00 2001 From: Seongnoh Sean Yi Date: Mon, 13 May 2019 23:24:59 +0200 Subject: [PATCH 3/3] change Squotes to Dquotes --- js/electron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/electron.js b/js/electron.js index 21d8be8a..c5e9c4cb 100644 --- a/js/electron.js +++ b/js/electron.js @@ -17,7 +17,7 @@ const BrowserWindow = electron.BrowserWindow; let mainWindow; function createWindow() { - app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required'); + app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required"); var electronOptionsDefaults = { width: 800, height: 600,