Since Electron updated its Chromium version, it has adopted by default the policy of disabling auto-play from Chrome 66.
This includes having the user interact with the page before auto-play occurs. This isn’t ideal behaviour for say digital signage where no one interacts with it, or if you have an intro screen video for a kiosk.
To get around this, the following code works like a charm:
const app = electron.app app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required');