Read the statement by Michael Teeuw here.
MMM-pages - how to know which page index my module has?
-
As a workaround, I will make it a requirement to put the MMM-Player on the first page (page index 0).
When I receive 0, then I will start streaming, otherwise I will stop streaming.
That seems to work. -
@sdetweil
Short question:There are 2 versions of MMM-pages:
https://github.com/edward-shen/MMM-pages
https://github.com/sdetweil/MMM-pagesThey seem in-sync, but which one would be the preferred one to take?
-
@evroom the core function is the same
i added the ability to have different page display timesi wrote the doc on the fixed page name approach
as you are using a notification now
just move that to suspend (same as index=0)
and the resume wakes you back up -
@sdetweil
He has the MMM-MPlayer working in pages and I am now using pages and MPlayer in my main MM.
Kinda of cool to be able to show a RSTP camera or 2 again… -
@plainbroke cool
-
@evroom said in MMM-pages - how to know which page index my module has?:
As a workaround, I will make it a requirement to put the MMM-Player on the first page (page index 0).
When I receive 0, then I will start streaming, otherwise I will stop streaming.
That seems to work.Hi
Trying to use the mmm-mplayer module with mmm-pages, and it works fine, as you say, when the page index is 0.
However, I’d like to use it to only show video when called via notification
I have a single main page (without mplayer) - that shows all the time - and a single hidden page (with mplayer) to be shown when called via notification and then return the the main page with another notification.
I can’t currently implement this. Any ideas?
Thanks very much
-
@mvrlogins why not? what triggers the notification??
button, command , …
you could prove this with the MMM-CommandtoNotification module
-
I’m using MMM-Remote Control
The issue is that the video is shown all the time on page0.
I have 2 pages set up with MMM-Pages
- 1 page to be shown all the time
- 1 hidden page to be shown only when called.
The video needs to be on the hidden page. If I put classes : “hidden_page” under MMM-Player, the video feed shows on the page0 regardless.
The hidden page, when called, shows only the header fro MMM-Player and is otherwise blank
The page calling works fine with MMM-RemoteControl
{ module: "MMM-pages", config: { rotationTime: 1000 * 20, // rotate every 20 seconds modules: [ ["page1"], // class name for page 1 ], fixed: ["fixed_page"], hiddenPages: { "Doorbell": ["doorbell_page"], } } },
and
{ module: 'MMM-MPlayer', classes: "doorbell_page", disabled: false, position: "top_left", header: "MPlayer", config: { useTwoWindows: true, layout: 'column', monitorAspect: 0, rotate: -1, windowSize: { width: 640, height: 480 }, windowPosition: { x: 5, y: 225 }, streamInterval: 30000, streams: { window1: [ 'rtsp://10.0.1.1:7447/gv9eHrB9yZyPhgvN', ], window2: [ 'rtsp://10.0.1.1:7447/D89zTJyDwN8YtKix', ] } } },
-
Only thing I can think of right now is to put the video on page0 and the rest on page1
and then use a combination of the PAGE_CHANGED and PAUSE_ROTATION notifications to get what I want
Or is there a way to permanently pause rotation?
Then I can only use the PAGE_CHANGED call to get to the page I want
would the below disable rotation?
rotationTime: 1000 * 0,
-
@mvrlogins i believe so. but you should have been able to send the notification for the named hidden page
“SHOW_HIDDEN_PAGE”, “Doorbell”
right?!