Dominevo
ReferenceHTTP API

cameraStreams

The cameraStreams router: 5 methods of the camera-streams capability, with tier, scope, input and output.

Capability camera-streams · scope device · mode singleton · source packages/types/src/capabilities/camera-streams.cap.ts:211.

Every method is called at /trpc/cameraStreams.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.

MethodKindTierToken scopeViewer
getCameraStreamsqueryprotectedviewyes
getBrokerStreamsqueryprotectedviewyes
getRtspEntriesqueryprotectedviewyes
getProfileRtspEntriesqueryprotectedviewyes
pickStreamqueryprotectedviewyes

cameraStreams.getCameraStreams

  • Kind: query — GET /trpc/cameraStreams.getCameraStreams
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability camera-streams, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=cameraStreams.getCameraStreams on your hub

Input

{ deviceId: number }

Output

CameraStreamSchema[]

Shapes: CameraStreamSchema

cameraStreams.getBrokerStreams

  • Kind: query — GET /trpc/cameraStreams.getBrokerStreams
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability camera-streams, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=cameraStreams.getBrokerStreams on your hub

Input

{ deviceId: number }

Output

ProfileSlotSchema[]

Shapes: ProfileSlotSchema

cameraStreams.getRtspEntries

  • Kind: query — GET /trpc/cameraStreams.getRtspEntries
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability camera-streams, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=cameraStreams.getRtspEntries on your hub

Input

{ deviceId: number; hostname?: string }

Output

RtspRestreamEntrySchema[]

Shapes: RtspRestreamEntrySchema

cameraStreams.getProfileRtspEntries

  • Kind: query — GET /trpc/cameraStreams.getProfileRtspEntries
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability camera-streams, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=cameraStreams.getProfileRtspEntries on your hub

Input

{ deviceId: number; hostname?: string }

Output

ProfileRtspEntrySchema[]

Shapes: ProfileRtspEntrySchema

cameraStreams.pickStream

  • Kind: query — GET /trpc/cameraStreams.pickStream
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability camera-streams, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=cameraStreams.pickStream on your hub

Input

{ deviceId: number; requirements: { acceptCodecs?: StreamCodecSchema[]; minHeight?: number; maxHeight?: number; minWidth?: number; excludeDerived?: boolean; requireSiblingCodec?: StreamCodecSchema[]; allowTranscode?: boolean; requireProfileBound?: boolean }; preferences?: { preferredProviders?: string[]; resolutionPreference?: "highest" | "lowest"; targetHeight?: number } }

Output

PickedCamStreamSchema | null

Shapes: StreamCodecSchema · PickedCamStreamSchema