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

[MMM-RadioDe] - does not autoplay

Scheduled Pinned Locked Moved Solved Troubleshooting
4 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
    ruffneck2
    last edited by ruffneck2 May 22, 2019, 6:41 AM May 22, 2019, 6:38 AM

    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 May 22, 2019, 11:27 AM Reply Quote 0
    • S Offline
      sdetweil @ruffneck2
      last edited by sdetweil May 22, 2019, 11:27 AM May 22, 2019, 11:27 AM

      @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

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • R Offline
        ruffneck2
        last edited by May 23, 2019, 5:47 AM

        @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 May 23, 2019, 11:34 AM Reply Quote 0
        • S Offline
          sdetweil @ruffneck2
          last edited by May 23, 2019, 11:34 AM

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

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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