MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.

Youtube autoplay

  • 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

  • @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)

  • Thank you a lot is works

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

  • @akshat what module is playing the YouTube video?

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

Log in to reply