• 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.

MMM-EARTH-Live & MMM-ISS-Live

Scheduled Pinned Locked Moved Education
47 Posts 13 Posters 18.9k Views 14 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.
  • S Offline
    sdetweil @ruskythegreat
    last edited by sdetweil Nov 2, 2021, 5:42 PM Nov 2, 2021, 5:41 PM

    @ruskythegreat there is already a WebPreferences object in the electron.js file, just down a few lines from your change.
    line 30

    look at the doc link for autoplay, to get the right syntax/spelling

    and add the key and value to the WebPreferences object

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    R 1 Reply Last reply Nov 3, 2021, 8:35 AM Reply Quote 0
    • R Offline
      ruskythegreat @sdetweil
      last edited by ruskythegreat Nov 3, 2021, 8:37 AM Nov 3, 2021, 8:35 AM

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

      S 1 Reply Last reply Nov 3, 2021, 11:56 AM Reply Quote 0
      • S Offline
        sdetweil @ruskythegreat
        last edited by sdetweil Nov 3, 2021, 12:02 PM Nov 3, 2021, 11:56 AM

        @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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Nov 3, 2021, 12:53 PM Reply Quote 0
        • R Offline
          ruskythegreat @sdetweil
          last edited by Nov 3, 2021, 12:53 PM

          @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

          S 1 Reply Last reply Nov 3, 2021, 1:07 PM Reply Quote 0
          • S Offline
            sdetweil @ruskythegreat
            last edited by sdetweil Nov 3, 2021, 1:15 PM Nov 3, 2021, 1:07 PM

            @ruskythegreat yes, I mentioned that others had found the same issue…

            try this one thing, (I don’t think it will help but)
            clear the Electron config folder, will be recreated on next electron startup
            (zoom setting is saved here somewhere)

            stop MagicMirror
            rm .rf ~/.config/Electron
            start MagicMirror

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            R 1 Reply Last reply Nov 3, 2021, 2:26 PM Reply Quote 0
            • R Offline
              ruskythegreat @sdetweil
              last edited by Nov 3, 2021, 2:26 PM

              @sdetweil No change ;(

              S 1 Reply Last reply Nov 3, 2021, 2:43 PM Reply Quote 0
              • S Offline
                sdetweil @ruskythegreat
                last edited by Nov 3, 2021, 2:43 PM

                @ruskythegreat yes, and the doc says it defaults

                 Defaults to no-user-gesture-required.
                

                it would be interesting if you used chromium instead , if your config says

                address:"0.0.0.0",
                

                then try from any other system

                http://pi_address:MM_port
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • R Offline
                  ruskythegreat
                  last edited by Nov 3, 2021, 3:06 PM

                  @sdetweil It doesn’t work from Chrome 95.0.4638.54

                  S 1 Reply Last reply Nov 3, 2021, 3:06 PM Reply Quote 0
                  • S Offline
                    sdetweil @ruskythegreat
                    last edited by Nov 3, 2021, 3:06 PM

                    @ruskythegreat boooooo

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 3
                    • 4
                    • 5
                    • 5 / 5
                    5 / 5
                    • First post
                      43/47
                      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