angeldeejay / MMM-RTSP2WebRTC

MIT License
0 stars 0 forks source link

MMM-RTSP2WebRTC

This is a module for the MagicMirror².

This module serve go2rtc instance and proxy multiple RTSP feeds to be inserted in MagicMirror through WebRTC.

Example

Using the module

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)
      }
    }
  ]
};

Configuration options

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)