Dominevo
ReferenceDevice capabilities

recording

recording — a camera's recorded COVERAGE and PLAYBACK, from whichever source the operator picked.

recording — a camera's recorded COVERAGE and PLAYBACK, from whichever source the operator picked.

At a glance

Capabilityrecording
Provided byAn addon wraps the device and provides it. It is bound to a device through the device bindings and can be bound automatically to compatible devices.
Active providers per deviceseveral (every registered provider stays active)
Device typescamera
Sourcepackages/types/src/capabilities/recording.cap.ts

Methods

Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.

MethodKindRequired of a providerAccess
listSourcesqueryyesprotected
getAvailabilityqueryyesprotected
getDaysWithRecordingsqueryyesprotected
getPlaybackqueryyesprotected
getPlaybackOptionsqueryyesprotected

listSources

query

The sources this camera has, WITH the reason any of them cannot answer.

Asked separately from getAvailability because an empty bar is ambiguous and this is the only place the ambiguity is resolved: every bound provider contributes its own rows, and a provider that could not be reached at all still produces one row saying so. A surface that draws "no recordings" without reading this is drawing a guess.

The ONLY method here without a provider — it is the call that tells the caller what to put there.

Input

No fields besides deviceId.

Output

({ source: string; label: string; addonId?: string; availability: { state: "ok" | "sleeping" | "unreachable" | "no-storage" | "index-empty"; reason?: string; coverageAsOf?: number } })[]

getAvailability

query

Recorded coverage of [fromMs, toMs) at ONE source — the timeline bar.

protected, not admin: a per-camera read is exactly what a camera viewer is FOR, and the device-scoped mount routes through getProviderForDevice, so a camera outside the caller's scope is refused before a provider is reached.

Input

FieldTypeRequiredDescription
providerstringyesWHICH provider to ask — the addonId a { row carries, never a source id and never a list. REQUIRED, in the schema, where the generated types make it unomittable rather than merely discouraged. It was learned the expensive way on videoclips.listClips: measured on the live hub 2026-09-20, device 107 bound to recorder AND provider-reolink, a bare call with limit: 3 answered SIX rows, three from each source, merged — device-collection-dispatch.ts leaves an unpinned fan-out un-narrowed, so absence buys the union the method exists not to be. An un-narrowed getAvailability would do that to a TIMELINE: our ranges and the card's clips unioned into one bar, which is "two sources are never drawn together" broken in the one place it matters most. A provider the device is not bound to is refused BY NAME, never answered by another one.
fromMsnumberyes
toMsnumberyes
profilestringnoAnswer for THIS profile instead of the source's preferred one. Absent keeps the timeline's behaviour — one bar, one profile, one set of reads. profilesWithFootage on the answer says what may be asked for.

Output

FieldTypeRequiredDescription
deviceIdnumberyes
read"read" | "unreadable"yesSee { ranges that means nothing — never draw it as "no footage".
ranges({ profile: string; startMs: number; endMs: number })[]yes
profilesWithFootagestring[]yesEvery profile this camera has footage in AT THIS SOURCE — not only the one ranges describes. ranges answers for ONE profile by design: the timeline is a single bar, and enumerating all of them triples the directory reads for a bar that would look identical. Cheap: it is the same shallow directory read the profile CHOICE already makes. Ask for a specific profile's ranges with the profile input.

getDaysWithRecordings

query

Which calendar days in [fromMs,toMs) this source has ≥1 recording in, bucketed by the client's local day (tzOffsetMinutes = minutes to add to UTC). Drives the theater date-picker's day dots. provider is REQUIRED for the reason getAvailability states.

Input

FieldTypeRequiredDescription
providerstringyes
fromMsnumberyes
toMsnumberyes
tzOffsetMinutesnumberyes

Output

FieldTypeRequiredDescription
deviceIdnumberyes
read"read" | "unreadable"yesSee { "nobody could look", and the date-picker must not spell it the same as "no footage this month".
daysnumber[]yesLocal-midnight epochs (UTC ms) of days that have ≥1 recorded segment.

getPlayback

query

How to PLAY [fromMs, toMs) at this source.

It was getPlaybackManifest, and the rename is not cosmetic: a "manifest" is an HLS master playlist, which is a property of OUR recorder and of nothing else. Keeping the name would make every onboard implementation a lie in its signature. The old shape survives verbatim inside the union's hls arm, so the recorder's implementation is unchanged behind it.

Input

FieldTypeRequiredDescription
providerstringyes
fromMsnumberyes
toMsnumberyes
profile"high" | "mid" | "low"no

Output

How to PLAY the instant that was asked for, from the chosen source.

No new media transport is built for onboard sources: the clip arm is a DELEGATION to the videoclips transport that vendor already has. The onboard half of this collection is a PROJECTION of videoclips for coverage and a delegation to it for bytes.

{ kind: "hls"; manifest: { deviceId: number; localMasterPath: string | null; playbackUrl: string | null; playbackEndpoints: string[] } } | { kind: "clip"; source: string; clipId: string; startsAtMs: number } | { kind: "n…

getPlaybackOptions

query

What this (camera, source) can actually DO — asked before anything is drawn.

Input

FieldTypeRequiredDescription
providerstringyes

Output

FieldTypeRequiredDescription
transport"archive" | "stream" | "realtime"yesHow this source's media reaches the player. archive = our own indexed segment tree; stream = the provider's forward-only fMP4; realtime = a replay bound to wall clock.
coverage"continuous" | "sparse"yesWhat the BAR means. continuous = gaps are holes in a recording; sparse = gaps are the absence of one, and must be drawn as such. Not an onboard-only concession: measured 2026-09-24, OUR bar covers 98.8 % of 107's day and 1.2 % of 1436's. It is a fact about a (source, camera) pair, and ours answers it per camera from deriveRecordingMode.
seek"free" | "forward" | "segment"yesWhere the playhead may be put. free — anywhere, to the frame. forward — only ahead of the current position. segment — a position SNAPS to the head of the covering segment; a finer ask is accepted by the camera and SILENTLY IGNORED. Measured on 1436 (Hikvision V5.7.1, 2026-09-23): a window-narrowed ContentMgmt/search returns a row and a playbackURI, the replay opens 200 and delivers media — and the burned-in OSD of the first frame reads the SEGMENT HEAD every time. Calling that forward would tell the surface it may move the playhead ahead within a loaded segment, which it may not.
stepBackbooleanyesFrame-step BACKWARD is meaningful.
scrubbooleanyesWhether the drag-scrub gesture is served, as opposed to refused by name.
ratesnumber[]yesDeliverable rates, ascending, always containing 1. The surface draws its picker from this and from NOTHING else. 0 is not a member: pause is the absence of a rate.
exclusivebooleanyesTRUE when a read of this source HOLDS the camera's only playback session. A surface with this set makes at most ONE read at a time and draws no scrub-thumbnail strip, no hover preview, no prefetch and no background refresh. The precedent is exact and expensive: filling one screen of Hikvision thumbnails at 1.01× realtime consumed fifteen minutes of that camera's only playback session (1.2.126, reported within minutes), and a timeline is a screenful of reads by construction.