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

Podcast

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 5 Posters 6.7k 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.
  • P Offline
    paviro Admin
    last edited by paviro May 23, 2016, 11:38 PM May 23, 2016, 11:37 PM

    If you meant setTimeout(function(){socketNotificationReceived(notification, payload)},2000); on the other hand, this should not work at all! What is this supposed to do?

    We're all stories in the end. Just make it a good one, eh?

    – The Doctor

    1 Reply Last reply Reply Quote 0
    • W Offline
      witschi87
      last edited by May 24, 2016, 6:07 AM

      @paviro Yes, I mean setTimeout(function(){socketNotificationReceived(notification, payload)},2000);. This is an even call to wait the download is finished. The downloadVideo-Function has a callback to set the this.loaded = true and after that the socketNotificationReceived-Function runs the omx.play()-Command. But at this point nothings happens…

      1 Reply Last reply Reply Quote 0
      • P Offline
        PtrBld Module Developer
        last edited by PtrBld May 24, 2016, 8:45 AM May 24, 2016, 8:44 AM

        ok I see I will change that…
        Well if you never run into the ‘setTimeout’ call it works as expected :angel:

        But the video should be played. Can you tell me what podcast you are using and if the video is downloaded properly (can you play it from your directory)?

        1 Reply Last reply Reply Quote 0
        • W Offline
          witschi87
          last edited by witschi87 May 24, 2016, 8:53 AM May 24, 2016, 8:50 AM

          I’m using the 100 seconds Tagesschau podcast. The video is downloaded properly and I can play it from directory. I have also checked, that the omx.play()-Command is reached with a console.log. But nothing happens - no error message and no video is playing :(
          While we are at it: what is the best way to develop a module? Do I need to restart the application (pm2 restart/reload mm) every time I am changing a node_helper?

          1 Reply Last reply Reply Quote 0
          • P Offline
            PtrBld Module Developer
            last edited by May 24, 2016, 8:53 AM

            Yes. That is the way i am doing it

            1 Reply Last reply Reply Quote 0
            • P Offline
              PtrBld Module Developer
              last edited by May 24, 2016, 8:59 AM

              Have you tried playing the video using the omxplayer?

              1 Reply Last reply Reply Quote 0
              • W Offline
                witschi87
                last edited by May 24, 2016, 9:00 AM

                via ssh-console? How can I do that?

                J 1 Reply Last reply May 24, 2016, 9:14 AM Reply Quote 0
                • J Offline
                  jtyle6 @witschi87
                  last edited by May 24, 2016, 9:14 AM

                  @witschi87 said in Podcast:

                  via ssh-console? How can I do that?

                  https://www.raspberrypi.org/documentation/usage/audio/README.md

                  Basically, it’s:

                  omxplayer <File Name>
                  
                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    schmucke
                    last edited by Mar 16, 2017, 7:27 PM

                    @witschi87

                    dit you have resolve the problem? I ave the same issue - i can press the button, in the console appears BUTTON_PRESSED but nothing happen…

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