Skip to content

Camera

A live stream from an IP camera or a video server. Most IP cameras offer MJPEG (…/video.mjpg, …/mjpg/video.cgi), which plays everywhere; HLS (….m3u8) and plain video (MP4, WebM) work too. Auto picks the player from the URL.

The browser connects to the camera directly: the camera must be reachable from the browsers that show the dashboard, and HLS servers must allow it (CORS).

  • Reconnects by itself. When the stream drops, the widget shows No signal · retrying in N s and tries again after 2, 4, 8, 16 and then every 30 seconds.
  • Pauses while the tab is hidden, so a dashboard left open in the background doesn’t keep pulling video over a slow plant network.
  • An on/off button (power icon) in the title bar, next to the badge (the bar shows even without a title), stops the stream in that browser to save bandwidth or for privacy: the image or video is released, so nothing is requested from the camera, and the tile shows Camera off. Switching it on connects again. The choice is local: a reload connects again. Hide the button with the On/off button option.
  • A Live / Offline badge in the title bar shows the state at a glance.
  • HLS plays natively in Safari and on phones. Other browsers download a player (hls.js, about 115 KB) the first time a page with an HLS camera opens: never for MJPEG or video, and never for dashboards without cameras.
Property Type Default Description
label string Camera Title; empty for edge-to-edge video
icon string Lucide icon before the title
src (node config) string Stream URL
kind auto · mjpeg · hls · video auto Player; auto: .m3u8 is HLS, video files are video, anything else MJPEG
fit contain · cover contain Show the whole frame, or fill the tile (cropping)
showPower boolean true Show the on/off button in the tile
live (msg.ui only) boolean true false switches the camera off in every browser, true on again (see below)
msg.payload = 'http://10.0.0.21/mjpg/video.mjpg'; // switch to another camera
msg.payload = null; // stop
msg.ui = { live: false }; // switch the camera off in every browser
msg.ui = { live: true }; // and on again

A browser’s own button choice lasts until the flow changes live; browsers that open the page later get the flow’s value.

Only http(s) and relative URLs are accepted. RTSP streams don’t play in browsers: use the camera’s MJPEG or HLS output, or a converter such as go2rtc or MediaMTX.