MagicMirror2 Module for viewing IP cameras RTSP stream in real time using WebRTC technology.
Requires a RTSPtoWeb or RTSPtoWebRTC server running in the background. If you use Home Assistant, this can be the the RTSPtoWeb Add-On (e.g. http://homeassistant.local:8083).
Option | Default value | Description |
---|---|---|
width | 50% | Max video width |
url | WebRTC stream URL from the RTSPtoWeb* server |
To get the list of the streams available: curl http://demo:demo@127.0.0.1:8083/streams
Example Config:
{
module: "MMM-RTSPtoWeb",
position: "top_center",
header: "Front Door",
config: {
width: "100%",
url: "http://homeassistant.local:8083/stream/camera.front_door/channel/0/webrtc"
}
},
Based on the work done by @Anonym-tsk for MMM-HomeAssistant-WebRTC and @deepch for the RTSPtoWeb(RTC servers.