Read the statement by Michael Teeuw here.
MMM-EARTH-Live & MMM-ISS-Live
-
@ruskythegreat autoplay is now part of the webPreferences config
https://www.electronjs.org/docs/latest/api/browser-window
but, I have heard others say this setting also doesn’t work
(I did the change request to set it as it is now)
also, your electron should be 13.5.1 (on MM version 2.17.1)
-
@sdetweil I did run npm install electron@latest but yes, I am running MM 2.17.1
-
@ruskythegreat we haven’t tested above 13.5.1
-
@sdetweil I just downgraded to 13.5.1 but still no auto play.
-
@ruskythegreat i understand… did u try to change the code to the new webPreferences object parm?
in general they are stopping autoplay because customers are screaming at them (I hate it too in general purpose use)…
-
@sdetweil No, Sorry, I’m not familiar with the webPreferences object param Can I trouble you to ELI5 :)
-
@ruskythegreat there is already a WebPreferences object in the electron.js file, just down a few lines from your change.
line 30look at the doc link for autoplay, to get the right syntax/spelling
and add the key and value to the WebPreferences object
-
@sdetweil Thanks for all your help with this.
It’s still not autoplaying :(
I tried with the autoplayPolicy with the no-user-gesture-required so: -
autoplayPolicy: no-user-gesture-required,C&P to eliminate typos!
So now the whole webpreferences entry reads: -
webPreferences: { autoplayPolicy: no-user-gesture-required, contextIsolation: true, nodeIntegration: false, zoomFactor: config.zoom },
But MM doesn’t start!
-
@ruskythegreat that string needs quotes
in JavaScript
the thing to the left of : does not need quotes
if the thing to the right is a number or true/false
no quotes
if the thing to the right is a symbol { or [ no quotes
otherwise
if it contains letters, it needs quotes.single or double does matter as long as they are the same on both ends
-
@sdetweil
Sorry, I did try that but forgot to update the post!
It currently reads: -
autoplayPolicy: “no-user-gesture-required”
But still doesn’t autoplay