• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

electron.js HELP

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 2 Posters 1.5k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    Manu85
    last edited by Apr 10, 2020, 3:50 PM

    @sdetweil thank you very much, it restarted !!!
    I was trying to fix an error on the module of @ mykle1 which recommended the following thing:

    },
    Electron may hinder the use of autoplay. Known issue.
    This will fix it
    Edit MagicMirror/js/electron.js
    Add the line shown below
    let mainWindow;

    function createWindow() {
    app.commandLine.appendSwitch(‘autoplay-policy’, ‘no-user-gesture-required’); //< -------- added
    Save and restart MagicMirror

    S 1 Reply Last reply Apr 10, 2020, 4:12 PM Reply Quote 0
    • S Offline
      sdetweil @Manu85
      last edited by Apr 10, 2020, 4:12 PM

      @Manu85 u don’t need that. We added it a couple releases ago

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • M Offline
        Manu85
        last edited by Apr 10, 2020, 4:27 PM

        @sdetweil ok, the module crashes from time to time and I have a message telling me that I have an update problem (something like that) and I have a photo of the horizon with a sunset

        S 1 Reply Last reply Apr 10, 2020, 6:38 PM Reply Quote 0
        • S Offline
          sdetweil @Manu85
          last edited by Apr 10, 2020, 6:38 PM

          @Manu85 could you be a little more specific on the error… if using pm2 to start, show the part in the output from

          pm2 logs --lines=100
          

          the line

          app.commandLine.appendSwitch(‘autoplay-policy’, ‘no-user-gesture-required’);
          

          only applies to video or audio files

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Apr 10, 2020, 7:13 PM Reply Quote 0
          • M Offline
            Manu85 @sdetweil
            last edited by Apr 10, 2020, 7:13 PM

            @sdetweil you know me well :-)

            1 Reply Last reply Reply Quote 0
            • M Offline
              Manu85
              last edited by Apr 10, 2020, 7:34 PM

              @sdetweil
              I don’t see this line!

              app.commandLine.appendSwitch(‘autoplay-policy’, ‘no-user-gesture-required’);

              S 1 Reply Last reply Apr 10, 2020, 7:49 PM Reply Quote 0
              • S Offline
                sdetweil @Manu85
                last edited by Apr 10, 2020, 7:49 PM

                @Manu85 ver 2.11 direct from github

                function createWindow() {
                	app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required");
                

                I added that in ver 2.8 last year

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • M Offline
                  Manu85
                  last edited by Apr 11, 2020, 3:06 PM

                  @sdetweil Thank you for your answer

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    7/10
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy