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
This commit is contained in:
Seongnoh Sean Yi 2019-05-13 21:19:50 +02:00 committed by GitHub
parent ccb248db91
commit 94fc4cb8a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,