MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED MMM-EasyBack no autostart Video

    Troubleshooting
    4
    35
    4715
    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.
    • Stoffbeuteluwe
      Stoffbeuteluwe Project Sponsor last edited by Stoffbeuteluwe

      I would like to have the funny monkeys from the MMM-EasyBack YouTube Video but the video does not start automatically and I don’t know how to start manually.
      Thanks for help🙏

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @Stoffbeuteluwe last edited by

        @Stoffbeuteluwe this is due to a new restriction on the browser

        do this

        edit MagicMirror/js/electron.js
        and add the line shown below

        let mainWindow;
        
        function createWindow() {
            app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required');  //< -------- added
        

        save and restart MagicMirror

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 2
        • Stoffbeuteluwe
          Stoffbeuteluwe Project Sponsor last edited by

          Thanks i will try this later today
          Thanks 👍🏽👍🏽

          1 Reply Last reply Reply Quote 0
          • Stoffbeuteluwe
            Stoffbeuteluwe Project Sponsor last edited by

            Hi, I have added the line than MM does not start…

            S 1 Reply Last reply Reply Quote 0
            • S
              sdetweil @Stoffbeuteluwe last edited by sdetweil

              @Stoffbeuteluwe show me the few lines.

              I cut pasted from mine.
              Watch. out for the quotes, sometimes paste creates the wrong ones

              Sam

              Create a working config
              How to add modules

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

                @sdetweil

                I can confirm that this fix DOES work. I installed the newest MM 2.7.1 and the “autostart video” was indeed not working. Many thanks to you, @sdetweil, for saving the day. 👍

                Here is a screen shot of how the edit should look in case anyone would like a visual.

                0_1557282214615_Screenshot from 2019-05-07 22-20-11.png

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • Mykle1
                  Mykle1 Project Sponsor Module Developer last edited by

                  Update

                  • The easiest way to use video and pictures as a background on your mirror.

                  • Use a YouTube video as a live background with just the YouTube ID of the video.

                  • Works by default with Hello-Lucy voice. https://github.com/mykle1/Hello-Lucy.

                  • .jpg files, .png files, .gif files, Full Screen animated gifs (not recommended for Pi users).

                  • .mp4 and .mov files (others not tested).

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • Stoffbeuteluwe
                    Stoffbeuteluwe Project Sponsor last edited by

                    Ok i will try again 😀

                    1 Reply Last reply Reply Quote 0
                    • Stoffbeuteluwe
                      Stoffbeuteluwe Project Sponsor last edited by

                      Perfect thank you…🙏

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

                        So I’m not sure what’s going on with mine because it won’t autostart. I did all the changes suggested and below is a copy straight out of the MagicMirror/js/electron.js file.

                        I’ve restarted it many times.

                        Before I edited it it had everything there except

                        'autoplay-policy', 'no-user-gesture-required'
                        

                        was

                        "autoplay-policy", "no-user-gesture-required"
                        
                        let mainWindow;
                        
                        function createWindow() {
                            app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required');  //< -------- added
                                var electronOptionsDefaults = {
                                        width: 800,
                                        height: 600,
                                        x: 0,
                                        y: 0,
                                        darkTheme: true,
                                        webPreferences: {
                                                nodeIntegration: false,
                                                zoomFactor: config.zoom
                                        },
                                        backgroundColor: "#000000"
                                };
                        
                        
                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 1 / 4
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy