Read the statement by Michael Teeuw here.
Podcast
-
@witschi87 it should indeed be correct as it is right now since you are overwriting a function adding
selfshould break that especially since self is not even defined at that point. -
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? -
@paviro Yes, I mean
setTimeout(function(){socketNotificationReceived(notification, payload)},2000);. This is an even call to wait the download is finished. ThedownloadVideo-Function has a callback to set thethis.loaded = trueand after that thesocketNotificationReceived-Function runs theomx.play()-Command. But at this point nothings happens… -
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)?
-
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 aconsole.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? -
Yes. That is the way i am doing it
-
Have you tried playing the video using the omxplayer?
-
via ssh-console? How can I do that?
-
@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> -
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…
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login