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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getCameraStreams | query | protected | view | yes |
getBrokerStreams | query | protected | view | yes |
getRtspEntries | query | protected | view | yes |
getProfileRtspEntries | query | protected | view | yes |
pickStream | query | protected | view | yes |
cameraStreams.getCameraStreams
- Kind: query —
GET /trpc/cameraStreams.getCameraStreams - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitycamera-streams, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=cameraStreams.getCameraStreamson 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:
viewon capabilitycamera-streams, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=cameraStreams.getBrokerStreamson 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:
viewon capabilitycamera-streams, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=cameraStreams.getRtspEntrieson 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:
viewon capabilitycamera-streams, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=cameraStreams.getProfileRtspEntrieson 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:
viewon capabilitycamera-streams, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=cameraStreams.pickStreamon 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 | nullShapes: StreamCodecSchema · PickedCamStreamSchema