Read the statement by Michael Teeuw here.
module unable to play mp3 file using omxplayer
-
I use a module MMM-PrayerTime on my MagicMirror, that uses omxplayer to play an mp3 file, announcing the prayer times.
After updating to the latest Raspbian OS system (Bookworm) and reinstalling the MagicMirror, the module no longer plays the mp3 file as omxplayer which is a dependency for the module, has been deprecated since 2020.
Is there any other player that could be substituted for omxplayer? Would it be possible to change the instruction in node.helper.js in the line where omxplayer is instructed to play the file, to some other player?
var adzanCmd = ‘/usr/bin/omxplayer -o both modules/MMM-PrayerTime/res/’ + adzanSound + ’ &';
I have raised this as an issue on the module site but have not received any response yet.
Thank you in advance -
@hrjmsh use MPlayer rather than OMXplayer. thats what i am using [also using bookworm]
-
@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.