Video Streams
Returns video stream information. URLs for the video streams are generated dynamically based on client and network context, which prevents this endpoint from supporting subscriptions.
- : Grants access to retrieve system data and information.
Plugin authentication using Bearer token. For more details, see Fotokite API Documentation.
Video stream settings
Information about video stream. This information is mostly static but may change based on a user request.
Unique video stream identifier.
ZoomVideo stream type. Possible values:
Color- regular color video stream.Thermal- thermal video stream.
Video frames width. Presented for fixed resolution encoders.
1920Video frames height. Presented for fixed resolution encoders.
1080Sensor width in mm.
5.952Sensor height in mm.
3.348Lens focal length in mm. This value is constant and is not affected by zoom. This value corresponds to the zoom_min value.
2.7Minimum zoom level.
1Maximum zoom level.
32Video codec. Possible values:
H.264
H.264RTSP video stream url.
rtsp://192.168.2.100:554/thermalRTSPS encoded video stream url.
rtsps://192.168.2.100:322/thermalIf true then the video stream supports snapshot functionality. This means that the video stream can provide a snapshot image.
trueGET /api/v1/videostreams HTTP/1.1
Host: 192.168.2.100:3128
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
Video stream settings
[
{
"stream_id": "zoom",
"type": "Color",
"frame_width": 1920,
"frame_height": 1080,
"sensor_width": 5.952,
"sensor_height": 3.348,
"lens_focal_length": 2.7,
"zoom_min": 1,
"zoom_max": 32,
"codec": "H.264",
"rtsp_url": "rtsp://192.168.2.100:554/zoom",
"rtsps_url": "rtsps://192.168.2.100:322/zoom",
"can_do_snapshot": true
},
{
"stream_id": "overview",
"type": "Color",
"frame_width": 1920,
"frame_height": 1080,
"sensor_width": 5.952,
"sensor_height": 3.348,
"lens_focal_length": 2.7,
"zoom_min": 1,
"zoom_max": 1,
"codec": "H.264",
"rtsp_url": "rtsp://192.168.2.100:554/wide",
"rtsps_url": "rtsps://192.168.2.100:322/wide",
"can_do_snapshot": true
},
{
"stream_id": "thermal",
"type": "Thermal",
"frame_width": 320,
"frame_height": 240,
"sensor_width": 3.84,
"sensor_height": 2.88,
"lens_focal_length": 9.1,
"zoom_min": 1,
"zoom_max": 1,
"codec": "H.264",
"rtsp_url": "rtsp://192.168.2.100:554/thermal",
"rtsps_url": "rtsps://192.168.2.100:322/thermal",
"can_do_snapshot": true
}
]Returns frequently changing video stream information for the specified video stream.
- : Grants access to retrieve system data and information.
Plugin authentication using Bearer token. For more details, see Fotokite API Documentation.
Unique stream identifier.
ZoomVideo stream frequently changing information
Frequently changing information about video stream
Unique video stream identifier.
ZoomIf true then the video stream is currently streaming.
trueVideo timestamp of the last video frame. For RTP video streams this is the RTP timestamp.
123456789Horizontal field of view in degrees.
95.57Vertical field of view in degrees.
63.6Camera pan angle in degrees in NED coordinates.
- 0 - The camera is looking North.
- +90 - The camera is looking East.
- +180 - The camera is looking South.
- -90 - The camera is looking West.
10Camera tilt angle in degrees in NED coordinates.
- 0 - The camera is level, looking straight ahead.
- -90 - The camera is looking straight up.
- +90 - The camera is looking straight down towards gravity vector.
32Camera roll angle in degrees in NED coordinates.
- 0 - The camera is level, with the top facing upward.
- +90 - The top of the camera is rotated to the right.
- +180 - The top of the camera is facing downward (the same direction as gravity vector).
- -90 - The top of the camera is rotated to the left.
0Current zoom level.
1Thermal color palette. This property is present only for thermal video streams. If the video stream is not thermal then this property is absent.
IronbowThe operation requires a camera payload, but either a different type of payload is currently installed, or the requested video stream does not exist for the installed camera.
GET /api/v1/videostreams/{stream_id}/state HTTP/1.1
Host: 192.168.2.100:3128
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"stream_id": "zoom",
"is_streaming": true,
"timestamp": 123456789,
"fov_horizontal": 47.785,
"fov_vertical": 31.8,
"zoom_level": 2
}Sets the zoom level for the specified video stream.
- : Allows sending commands to control the system.
Plugin authentication using Bearer token. For more details, see Fotokite API Documentation.
Unique stream identifier.
ZoomRequest to set zoom level.
New zoom level to set. Must be in the range from zoom_min to zoom_max.
2The command was sent successfully
No content
Request parameter doesn't meet criteria
Control is not allowed because somebody else is controlling the System.
The operation requires a camera payload, but either a different type of payload is currently installed, or the requested video stream does not exist for the installed camera.
The operation is not allowed in current state. Example: Rotation is not allowed during landing.
Bad Gateway. The service is not able to communicate with an upstream service it depends on.
The service is not ready yet. Usually this means that service didn't gather all the necessary information from subsystems.
POST /api/v1/videostreams/{stream_id}/control/zoom HTTP/1.1
Host: 192.168.2.100:3128
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"zoom_level": 2
}No content
Sets the thermal color palette for the specified video stream.
- : Allows sending commands to control the system.
Plugin authentication using Bearer token. For more details, see Fotokite API Documentation.
Unique stream identifier.
ThermalRequest to set thermal color palette.
Thermal color palette. Possible values:
WhiteHotBlackHotRainbowRainbowHighContrastIronbowLavaArcticGlowbowGradedFireHottest
The command was sent successfully
No content
Request parameter doesn't meet criteria
Control is not allowed because somebody else is controlling the System.
The operation requires a camera payload, but either a different type of payload is currently installed, or the requested video stream does not exist for the installed camera.
The operation is not allowed in current state. Example: Rotation is not allowed during landing.
Bad Gateway. The service is not able to communicate with an upstream service it depends on.
POST /api/v1/videostreams/{stream_id}/control/palette HTTP/1.1
Host: 192.168.2.100:3128
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"thermal_color_palette": "Ironbow"
}No content
Returns a snapshot from the specified video stream.
- : Grants access to retrieve system data and information.
Plugin authentication using Bearer token. For more details, see Fotokite API Documentation.
Unique stream identifier.
ZoomSnapshot image
Request parameter doesn't meet criteria
The operation requires a camera payload, but either a different type of payload is currently installed, or the requested video stream does not exist for the installed camera.
The operation is not allowed in current state. Example: Rotation is not allowed during landing.
Bad Gateway. The service is not able to communicate with an upstream service it depends on.
GET /api/v1/videostreams/{stream_id}/snapshot HTTP/1.1
Host: 192.168.2.100:3128
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
binaryLast updated