mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-04-25 06:58:30 -04:00
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:
parent
ccb248db91
commit
94fc4cb8a2
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue