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

Online Radio

Scheduled Pinned Locked Moved Entertainment
52 Posts 4 Posters 10.0k Views
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.
  • T
    tanvir586 @wishmaster270
    last edited by Oct 20, 2022, 1:35 PM

    @wishmaster270 Hi , Im using my monitors build in speaker. I don’t know which operating system I’m using. I downloaded yesterday. Will let you know once I go home

    1 Reply Last reply Reply Quote 0
    • T
      tanvir586 @wishmaster270
      last edited by Oct 20, 2022, 1:56 PM

      @wishmaster270 Hi just checked. its bullseye. and my config is

      {
      		module: "MMM-MplayerRadio",
      		header: "Radio",
      		position: "top_center",
      		config: {
      			//autoplay: 0,
      			stations: [
      				{
      					title: "Al Mubarak",
      					url: "https://emasjidlive.co.uk/listen/almubarakradio",
      					logo: "https://upload.wikimedia.org/wikipedia/commons/a/ac/Antenne-bayern-logo.png",
      				},
      			],
      		},
      	},
      
      W 1 Reply Last reply Oct 20, 2022, 2:44 PM Reply Quote 0
      • W
        wishmaster270 Module Developer @tanvir586
        last edited by Oct 20, 2022, 2:44 PM

        @bugsounet Oh, good to know. I use Bullseye for a while but currently only have a mirror running without audio.

        @tanvir586
        In default mode (which you use) mplayer is used. As i wrote in the documentation mplayer has caused a lot of problems with many streams. You could try to switch to vlc instead which is working much better but does not provide the current stream information.

        	{
        		module: "MMM-MplayerRadio",
        		header: "Radio",
        		position: "top_center",
        		config: {
        			//autoplay: 0,
                                customCommand: "/usr/bin/vlc",
                                customCommandArgs: ["-I","dummy","###URL###"],
        			stations: [
        				{
        					title: "Al Mubarak",
        					url: "https://emasjidlive.co.uk/listen/almubarakradio",
        					logo: "https://upload.wikimedia.org/wikipedia/commons/a/ac/Antenne-bayern-logo.png",
        				},
        			],
        		},
        	},
        

        Make sure to install vlc first:

        sudo apt update && sudo apt install -y vlc
        
        T 2 Replies Last reply Oct 20, 2022, 3:24 PM Reply Quote 0
        • T
          tanvir586 @wishmaster270
          last edited by Oct 20, 2022, 3:24 PM

          @wishmaster270 Hi I’ve tried this aswell. And I installed the vlc. But still not working. I’ll try it again now.

          1 Reply Last reply Reply Quote 0
          • T
            tanvir586 @wishmaster270
            last edited by Oct 20, 2022, 3:47 PM

            @wishmaster270 ok. Didn’t work. I have another mirror with no speaker. And that’s os 11.2. I can copy that sd card and try on my new mirror. Do you think it will work or I should do something on this one?

            W 1 Reply Last reply Oct 20, 2022, 4:58 PM Reply Quote 0
            • W
              wishmaster270 Module Developer @tanvir586
              last edited by Oct 20, 2022, 4:58 PM

              @tanvir586 If you do have graphical access directly or via vnc you can check the audio settings first.
              Maybe the sound is send to analog out instead of hdmi.

              W 1 Reply Last reply Oct 20, 2022, 5:04 PM Reply Quote 0
              • W
                wishmaster270 Module Developer @wishmaster270
                last edited by Oct 20, 2022, 5:04 PM

                @wishmaster270 If you do a right click on the speaker symbol you can decide where to output the sound:

                speaker.png

                T 1 Reply Last reply Oct 20, 2022, 5:10 PM Reply Quote 1
                • T
                  tanvir586 @wishmaster270
                  last edited by Oct 20, 2022, 5:10 PM

                  @wishmaster270 ![alt text]20221020_180721.jpg
                  It’s on Hdmi. And I can play YouTube, sound OK on YouTube

                  W 1 Reply Last reply Oct 20, 2022, 5:18 PM Reply Quote 1
                  • W
                    wishmaster270 Module Developer @tanvir586
                    last edited by wishmaster270 Oct 20, 2022, 5:21 PM Oct 20, 2022, 5:18 PM

                    @tanvir586 Ok. Maybe the vlc on the shell ignores it.

                    Found an interesting thread which suggests running vlc with a additional option:

                           {
                    		module: "MMM-MplayerRadio",
                    		header: "Radio",
                    		position: "top_center",
                    		config: {
                    			//autoplay: 0,
                                            customCommand: "/usr/bin/vlc",
                                            customCommandArgs: ["-I","dummy", "--alsa-audio-device", "hw:0,0", "###URL###"],
                    			stations: [
                    				{
                    					title: "Al Mubarak",
                    					url: "https://emasjidlive.co.uk/listen/almubarakradio",
                    					logo: "https://upload.wikimedia.org/wikipedia/commons/a/ac/Antenne-bayern-logo.png",
                    				},
                    			],
                    		},
                    	},
                    

                    If you use a Raspberry Pi 4 with two hdmi you may need to change “hw:0,0” to “hw:1,0” depending of the port your monitor is connected to.

                    Maybe this helps. I can not test it at the moment.

                    Edit:

                    Some people suggest to add

                    dtoverlay=vc4-fkms-v3d
                    

                    to “/boot/config.txt” additionally.

                    T 1 Reply Last reply Oct 20, 2022, 5:59 PM Reply Quote 0
                    • T
                      tanvir586 @wishmaster270
                      last edited by Oct 20, 2022, 5:59 PM

                      @wishmaster270 found the problem…
                      its my url. its play http://play.antenne.de/antenne.m3u. but it doesnt play https://emasjidlive.co.uk/listen/almubarakradio.

                      T 1 Reply Last reply Oct 20, 2022, 6:04 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 1 / 6
                      1 / 6
                      • First post
                        10/52
                        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
                        This website uses cookies to ensure you get the best experience on our website. Learn More