This is a module for the MagicMirror².
This module serve go2rtc instance and proxy multiple RTSP feeds to be inserted in MagicMirror through WebRTC.
To use this module, add the following configuration block to the modules array in the config/config.js
file:
var config = {
modules: [
{
module: "MMM-RTSP2WebRTC",
config: {
updateInterval: 30000, // Default time to show next camera (in milliseconds)
retryDelay: 5000, // Time to wait to refresh DOM when server and feeds are alive (in milliseconds)
controls: false, // If video player should show its controls
height: 350, // video player height
width: 700, // video player width
animationSpeed: 400, // Animation speed to update DOM
sources: [] // sources list (rtsp urls to proxy. e.g rtsp://x.x.x.x:8554/live)
}
}
]
};
Option | Default | Description |
---|---|---|
controls |
false |
Optional If video player should show its controls |
height |
350 |
Optional video player height |
width |
700 |
Optional video player width |
animationSpeed |
0 |
Optional Animation speed to update DOM |
liveTolerance |
3 |
Optional Frames tolerance in seconds |
host |
localhost |
Optional Frigate host |
port |
5000 |
Optional Frigate port |
sources |
[] |
Required sources list (Frigate camera names, e.g. bedroom ) |