Hi,
I am currently adopting MMM-MPlayer to interact with MMM-pages.
Reason is that suspending the module does not suspend (stop) the stream, as it is an overlay.
As long as MMM-MPlayer is running, it will always display the stream.
From the config I can deduct the page index (3 in this case):
modules: [
["compliments"], // page 1
["MMM-YrThen"], // page 2
["calendar"], // page 3
["MMM-MPlayer"], // page 4
],
And I see that reflected in the log:
0|MagicMirror | [2025-01-18 16:13:55.383] [LOG] [MMM-MPlayer.js:65:15] Received MMM-pages NEW_PAGE 3
0|MagicMirror | [2025-01-18 16:13:55.804] [LOG] [module.js:189:7] compliments is suspended.
0|MagicMirror | [2025-01-18 16:13:55.835] [LOG] [module.js:189:7] calendar is suspended.
0|MagicMirror | [2025-01-18 16:13:55.917] [LOG] [module.js:189:7] MMM-YrThen is suspended.
0|MagicMirror | [2025-01-18 16:13:56.395] [LOG] [module.js:196:7] clock is resumed.
0|MagicMirror | [2025-01-18 16:13:56.439] [LOG] [module.js:196:7] MMM-MPlayer is resumed.
But I would need to see my module name in the payload (MMM-MPlayer in this case), to act on the correct page index.
Come to think of it, I also would need the keyword suspended
or resumed
in the payload, in order to know what to do.
Any thoughts on this ?
Best regards,
E.J.