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

No autoplay for videos in v2.14 & v2.15

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 2 Posters 1.1k 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.
  • R Offline
    rudibarani Project Sponsor @sdetweil
    last edited by rudibarani Apr 25, 2021, 9:21 PM Apr 25, 2021, 9:20 PM

    @sdetweil said in No autoplay for videos in v2.14 & v2.15:

    so change electron.js like this
    function createWindow() {
    let electronOptionsDefaults = {
    width: 800,
    height: 600,
    x: 0,
    y: 0,
    darkTheme: true,
    webPreferences: {
    contextIsolation: true,
    nodeIntegration: false,
    zoomFactor: config.zoom,
    autoplayPolicy: “no-user-gesture-required” // < — moved to here
    },
    backgroundColor: “#000000”
    }

    Thank your for the suggestion, Sam. I tried it - but unfortunately without success. Autoplay of the ISS Livestream not starting with any of the modules. It works fine, when I go back to v2.13, though.

    http://www.ustream.tv/embed/17074538?html5ui&initial-quality=high&volume=0&autoplay=1
    

    Any additional thoughts would be much appreciated!

    S 1 Reply Last reply Apr 25, 2021, 9:21 PM Reply Quote 0
    • S Away
      sdetweil @rudibarani
      last edited by sdetweil Apr 25, 2021, 9:24 PM Apr 25, 2021, 9:21 PM

      @rudibarani well, we moved from electron 8 to 11, but only on 2.15

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 1 Reply Last reply Apr 25, 2021, 9:28 PM Reply Quote 0
      • R Offline
        rudibarani Project Sponsor @sdetweil
        last edited by rudibarani Apr 25, 2021, 9:28 PM Apr 25, 2021, 9:28 PM

        @sdetweil said in No autoplay for videos in v2.14 & v2.15:

        @rudibarani well, we moved from electron 8 to 11

        I do to keep up with the latest version of electron via

        npm install electron@latest
        

        as I otherwise get a message saying something like “your browser is outdated” hovering above the ISS stream. The current electron version does autoplay with MagicMirror v2.13 - but not with a newer version of MagicMirror.

        S 1 Reply Last reply Apr 25, 2021, 9:29 PM Reply Quote 0
        • S Away
          sdetweil @rudibarani
          last edited by sdetweil Apr 25, 2021, 9:45 PM Apr 25, 2021, 9:29 PM

          @rudibarani comment out

          contextIsolation: true,

          better yet, set it to false

          in the web preferences

          but that doesn’t explain 2.14

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          R 1 Reply Last reply Apr 25, 2021, 10:48 PM Reply Quote 0
          • R Offline
            rudibarani Project Sponsor @sdetweil
            last edited by Apr 25, 2021, 10:48 PM

            @sdetweil Thanks for the idea. This does not seem to cause the problem. Autoplay still refuses to cooperate…

            S 1 Reply Last reply Apr 25, 2021, 10:53 PM Reply Quote 0
            • S Away
              sdetweil @rudibarani
              last edited by Apr 25, 2021, 10:53 PM

              @rudibarani if you wave the mouse over the mm screen does it work then?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              R 1 Reply Last reply Apr 26, 2021, 7:03 AM Reply Quote 0
              • R Offline
                rudibarani Project Sponsor @sdetweil
                last edited by Apr 26, 2021, 7:03 AM

                @sdetweil No - I need to click on the “play” button on the stream.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  7/9
                  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