Read the statement by Michael Teeuw here.
module unable to play mp3 file using omxplayer
-
@myfingersarecold
@evroom
Do you use MMM-MPlayer with MMM-Carousel by chance?
When I put this in my config.js MMM-MPlayer runs out of turn over all the others and does not stop. Even when, I remove MMM-MPlayer from the MMM-Carousel list of modules. Any Idea what I did wrong? I remove mplayer and MMM-MPlayer to get it to stop.{ module: "MMM-MPlayer", disabled: false, position: "top_left", header: "MPlayer", config: { useTwoWindows: false, layout: "row", monitorAspect: 0, rotate: -1, windowSize: { width: 1900, height: 980 }, windowPosition: { x: 5, y: 225 }, streamInterval: 30000, streams: { window1: [ "rtsp://admin:admin@192.168.1.32:554/live", ], window2: [ "rtsp://admin:admin@192.168.1.35:554/live", ], } } },
-
@plainbroke said in module unable to play mp3 file using omxplayer:
runs out of turn over all the others and does not stop
what does that mean?
-
@sdetweil
So, I run 20+ modules using MMM-Carousel, they all work well together.
I added MMM-MPlayer and it took over, over rode carousel completely taking over MM. It would load about 10 seconds after pm2 restart mm.
Then it just stayed up, full screen, looking like it was the only module running. I figured out that the other modules where being run behind MMM-MPlayer by making it only a 1/4 of the screen size.
Does that make sense? -
@plainbroke
Yes, that makes sense.
Keyword: overlay.
I will reply in the MPlayer issue you opened for this, to not hijack this topic. -
@myfingersarecold
Thank you for the suggestion. I have installed the MPlayer and your module. The mp3 file didn’t play from the Prayer module. In my original post, I mentioned a line in the module’s node.helper.js file that goes like this:var adzanCmd = ‘/usr/bin/omxplayer -o both modules/MMM-PrayerTime/res/’ + adzanSound + ’ &';
I guess I need to direct the module to MPlayer instead of omxplayer.
Could you confirm if that is correct? Thank you once again.