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

Youtube autoplay

Scheduled Pinned Locked Moved Unsolved Requests
6 Posts 3 Posters 2.7k Views 3 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.
  • I Offline
    ines
    last edited by Jun 2, 2019, 1:35 PM

    I’ve update the mmm-assistantMk2 and suddenly when i demand a video from youtube it brings to me a video from youtube but the video doesn’t play

    S 1 Reply Last reply Jun 2, 2019, 1:43 PM Reply Quote 0
    • S Offline
      sdetweil @ines
      last edited by sdetweil Jun 2, 2019, 1:43 PM Jun 2, 2019, 1:43 PM

      @ines in the update MM uses an upgraded version of the browser that implements a new restriction, user must interact with screen before play is allowed…

      fix is to edit the MagicMirror/js/electron.js file and insert the line marked below (approx line 20)

      // Keep a global reference of the window object, if you don't, the window will
      // be closed automatically when the JavaScript object is garbage collected.
      let mainWindow;
      
      function createWindow() {
          app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required');  //< -------- added
      	var electronOptionsDefaults = {
      

      then close and restart mm

      i see there is a proposed fix in the next update (July)

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 2
      • I Offline
        ines
        last edited by Jun 2, 2019, 1:51 PM

        Thank you a lot is works

        1 Reply Last reply Reply Quote 0
        • A Offline
          akshat
          last edited by Jun 17, 2019, 9:27 PM

          If the youtube video is playing. How to stop it and go back to start screen?

          S 1 Reply Last reply Jun 18, 2019, 5:48 PM Reply Quote 0
          • S Offline
            sdetweil @akshat
            last edited by Jun 18, 2019, 5:48 PM

            @akshat what module is playing the YouTube video?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • A Offline
              akshat
              last edited by Jun 25, 2019, 5:12 AM

              Using assistant-mk2. The problem is solved now. Thanks mate!

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