Hello everyone,
I am a little new to MagicMirror and I am trying to control MMM-RTSPStream or somehow hide the stream with MMM-ModuleToggle and Remote Control module.
I am having problems with requests.
I have read every example and tryed many things in postman but with no success. I am trying to post these kind of notifications and I don’t know how to formulate request correctly.
This is how Module toggle notification should be formulated:
notification: "MODULE_TOGGLE",
payload: {hide: ["MMM-RTSPStream"], show: [], toggle:[]}
Or maybe there is a way to cut the stream directly. This is what MMM-RTSPStream suports:
"stream": {
"module": "MMM-RTSPStream",
"path": "stream",
"actions": {
"play": {
"notification": "RTSP-PLAY",
"prettyName": "Play Stream(s)"
},
"stop": {
"notification": "RTSP-STOP",
"prettyName": "Stop Stream(s)"
},
"fullscreen": {
"notification": "RTSP-PLAY-FULLSCREEN",
"prettyName": "Play Fullscreen"
},
"window": {
"notification": "RSTP-PLAY-WINDOW",
"prettyName": "Play in Window"
}
}
}
}
I am very grateful for such great modules and I would be very please if you could give me a hint to how to do it.
Regards