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-EasyBack no autostart Video

    Scheduled Pinned Locked Moved Solved Troubleshooting
    35 Posts 4 Posters 13.8k Views 4 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.
    • D Offline
      Darkmx-6
      last edited by

      Well I ended up going to a static picture because I can’t think of what else to do.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Darkmx-6
        last edited by sdetweil

        @Darkmx-6 i don’t know where mmstart.sh came from… it is not part of the base MagicMirror solution.

        the MagicMirror start script is ~/MagicMirror/installers/mm.sh

        it does not run serveronly… it assumes you are running the mirror user experience ON the same machine.

        i don’t know if EasyBack works on the remote client of serveronly… THAT browser would have to enable autoplay… our fix was for the electron browser running ON the same machine

        edit:
        ok, i see what you are doing… using chromium for the browser for some reason…

        so u have to disable the autoplay blocker there , from
        https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

        You can decide to disable entirely the autoplay policy by setting the 
        Chrome flag "Autoplay Policy" to "No user gesture is required" at chrome://flags/#autoplay-policy. 
        This allows you to test your website as if user were strongly engaged with your site and playback autoplay would be always allowed.
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 2
        • D Offline
          Darkmx-6
          last edited by

          Ah I see! It works THANK YOU!
          Must be because of the pre-made image I installed MagicMirror with.

          Here is the link:

          http://emmanuelcontreras.com/how-to/how-to-create-a-magic-mirror-2-with-pi-zero-w/

          Here is the fix:

          I edited the file chromium_start.sh found here:

          pi@raspberrypi:~ $ ls
          chromium_start.sh  MagicMirror  mmstart.sh  node-v10.16.0-linux-armv6l  package-lock.json
          

          and added

          --autoplay-policy=no-user-gesture-required
          

          Example:

            GNU nano 3.2                          chromium_start.sh                                                                         
          
          #!/bin/sh
          unclutter &
          xset -dpms # disable DPMS (Energy Star) features.
          xset s off # disable screen saver
          xset s noblank # don’t blank the video device
          matchbox-window-manager &
          #midori -e Fullscreen -a http://localhost:8080
          chromium-browser --autoplay-policy=no-user-gesture-required --incognito --kiosk http://localhost:8080/
          
          S Mykle1M 2 Replies Last reply Reply Quote 1
          • S Offline
            sdetweil @Darkmx-6
            last edited by

            @Darkmx-6 cool!.. great feedback, thanks we missed that this was a pi0, and that you were running split mode…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • D Offline
              Darkmx-6
              last edited by

              @sdetweil said in MMM-EasyBack no autostart Video:

              is was a pi0, and that you were running split mode…

              what is split mode? If I am I didn’t mean to, I have it directly connected to a TV that I am using as a Bulletin board.

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Darkmx-6
                last edited by

                @Darkmx-6 there are two ways to run Magic Mirror

                all in one(all in one application) , uses electron, npm start.
                we’ve solved the pi 0 problem… my installer handles it

                split mode (two applications)
                start serverOnly
                then view with some other browser (chrome, firefox, ie, …) either locally or from another machine/phone…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                Mykle1M 1 Reply Last reply Reply Quote 1
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @Darkmx-6
                  last edited by

                  @Darkmx-6 said in MMM-EasyBack no autostart Video:

                  Here is the fix:

                  I added your fix for Chromium to the readme. Many thanks, Mate. :thumbsup:

                  https://github.com/mykle1/MMM-EasyBack/blob/master/README.md

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 1
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @sdetweil
                    last edited by

                    @sdetweil

                    And Sam, my thanks, again. :-)

                    Create a working config
                    How to add modules

                    D 1 Reply Last reply Reply Quote 1
                    • D Offline
                      Darkmx-6
                      last edited by

                      No, I thank you! I took a bit, but I’m happy with this!

                      1 Reply Last reply Reply Quote 1
                      • D Offline
                        Darkmx-6 @Mykle1
                        last edited by

                        @Mykle1

                        In the readme you should really give the thanks to sdetweil , he’s the one who basically gave me the answer.

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