stream-catalog
One publishable camera stream as its OWNING PROVIDER describes it — the same payload the (legacy) push streamBroker.publishCameraStream carried, minus deviceId.
One publishable camera stream as its OWNING PROVIDER describes it — the same payload the (legacy) push streamBroker.publishCameraStream carried, minus deviceId.
The stream-broker PULLS this catalog per camera (on start, on a configurable reconcile poll, and on device / stream-params events) to (re)build its cam-stream registry, instead of relying on providers to push. Pull is authoritative (RPC); the poll is the backstop for any missed event. This makes the broker self-heal after a restart — it re-derives the full catalog from the providers rather than waiting to be re-fed.
url is the dial source where the provider can resolve it synchronously (rtsp / rtmp / http). For lazy sources (Reolink rfc4571) it carries the lazy:rfc4571: sentinel; the real URL is still materialised at DIAL time via the broker's onRequestStreamSourceRefresh round-trip — unchanged by the pull model. push-annexb sources carry no URL (the provider pushes frames).
At a glance
| Capability | stream-catalog |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | camera |
| Source | packages/types/src/capabilities/stream-catalog.cap.ts |
Methods
Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.
| Method | Kind | Required of a provider | Access |
|---|---|---|---|
getCatalog | query | yes | default |
getCatalog
query
Input
No fields besides deviceId.
Output
({ camStreamId: string; kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived"; url?: string; codec?: string; resolution?: { width: number; height: number }; fps?: number;…
Runtime state
The state Dominevo keeps for each device with this capability, readable without calling the provider.
| Field | Type | Required | Description |
|---|---|---|---|
descriptors | ({ camStreamId: string; kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived"; url?: string; codec?: string; resolution?: { width: number; height: number }; fps?: number;… | yes | |
lastFetchedAt | number | yes |