ReferenceDevice capabilities
osd
Generic on-screen-display (video overlay) cap.
Generic on-screen-display (video overlay) cap. Each camera exposes a firmware-defined list of overlays (channel name, timestamp, watermark, logo, …); the cap models them as a homogeneous array of descriptors so the admin UI can render them with zero per-firmware code.
At a glance
| Capability | osd |
| 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/osd.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 |
|---|---|---|---|
setOverlay | mutation | yes | admin |
setOverlay
mutation
Patch a single overlay by id. Provider handles read-modify-write against firmware APIs that require the full object (Reolink SetOsd). Omitted patch keys are preserved. Successful completion triggers onStatusChanged.
Input
| Field | Type | Required | Description |
|---|---|---|---|
overlayId | string | yes | |
patch | { enabled?: boolean; text?: string; position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "custom" } | yes |
Output
Nothing.
Status
| Field | Type | Required | Description |
|---|---|---|---|
overlays | ({ id: string; kind: "text" | "timestamp" | "watermark"; enabled: boolean; text?: string; position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "custom"; availablePositio… | yes |
Events
onStatusChanged
| Field | Type | Required | Description |
|---|---|---|---|
deviceId | number | yes | |
status | { overlays: ({ id: string; kind: "text" | "timestamp" | "watermark"; enabled: boolean; text?: string; position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "custom"; avai… | yes |