*getLiveImage

Configuration Article | CA-20220907-TP-49

VDG Sense | API | Functions | Media

The system can send live images of a certain camera. The images will be in JPEG format. imagewidth and imageheight only work if transcoding is enabled.

Request

command=getLiveImage&serverid=[UID]&cameraid=[UID]&imagewidth=[number>0]&imageheight=[number>0]&fittopanel=[bool]

parameter

type

remarks

parameter

type

remarks

serverid

[UID]

unique server id.

cameraid

[UID]

unique camera id

imagewidth

[number > 0]

optional image width for transcoding

imageheight

[number > 0]

optional image height for transcoding

fittopanel

[boolean]

optional scale image, fit to panel. Values: true, false

Response

jpeg image (or result in case of error)

error code

description

remarks

error code

description

remarks

0

Ok

Ok, no error

-2

No device

 No device found for the supplied cameraid/deviceid

-11

No image

There is no image found to return

-18

General error

An undefined error occured

-21

Device not active 

 The device is not active in the current profile and cannot produce any results

Changelog

  • 2.1.1 – Added parameter serverid

  • 1.4.1 – Added imagewidth and imageheight

  • 1.3.1 – Added