Skip to main content
Category: Controls · Publishes: a WebRTC stream · Pairs with: WebRTC Viewer

Mental model

A WebRTC Camera is a live broadcast source. It publishes a real-time video stream that a WebRTC Viewer elsewhere can watch — low-latency, peer-to-peer.

When to use it

  • Stream from a device or the viewing device’s camera
  • Build a live monitoring or two-way video experience

Settings

General

  • Widget Title / ID
  • Camera ID · Room name — stream identity
  • Server URL — the WebRTC signaling server
  • Preferred camera — front / back / specific device

Behavior

  • Auto connect · Auto stream — start automatically
  • Enable audio — include the microphone

Triggers

EventFires when
loadedThe stream is ready
errorConnection/stream error
(common)load, ready, destroy, update, visible, hidden
Pair it with a WebRTC Viewer (same room name) to watch the stream on another dashboard.

Script API example

The same interactions from a dashboard script:
widget.on('cam', 'loaded', () => widget.setText('camStatus', 'Live'));
widget.on('cam', 'error',  () => widget.setText('camStatus', 'Stream error'));

WebRTC Viewer

The counterpart that displays the stream.