MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    SOLVED [MMM-RadioDe] - does not autoplay

    Troubleshooting
    2
    4
    786
    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
      ruffneck2 last edited by ruffneck2

      Actually I have finished my Mirror and attached it on the wall. After starting the MagicMirror I realized that the MMM-RadioDe module does not start automatically, as it should and as previously did.
      In the past I set up my Pi with XVNC remote sessions and everything was working. The MMM-Radiode module was also starting automatically. A few weeks ago I updated my MagicMirror to 2.7.1 and now the module is still visible. If I connect to the Mirror via RDP session and press the Play button, it plays the set up radio station.
      I saw in the description of the module, without api_key the browser player will be displayed but will not start. But I have setted up an API Key. That’s why I’m wondering, why it is not working at the moment.
      Or could it be, that the API Key doesn’t work properly or has expired?
      Do you have any further suggestions to solve this issue?

      My config looks like:

      code_text
      {
      	module: 'MMM-RadioDe',
      	position: 'top_left', // This can be any of the regions.
      	config: {
      					// See 'Configuration options' for more information.
      					station: "1live",
      					// can be obtained in embed section of station, e.g. http://antennekids.radio.de/
      					api_key: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
      					//optional,
      					height:"92", // in pixel
      					width:"360", // in pixel
      	}
      },
      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @ruffneck2 last edited by sdetweil

        @ruffneck2 in the update MM uses an upgraded version of the browser that implements a new restriction, use 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

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • R
          ruffneck2 last edited by

          @sdetweil Thank you very much, this hint actually resolved the problem.
          You mentioned that this also will be fixed in the next MM update in July.
          I hope, that adding this line doesn’t lead into further complications in the next update.

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

            @ruffneck2 i don’t know if this change will make it in. I just see that someone submitted the change to be considered.

            Sam

            Create a working config
            How to add modules

            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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy