English | Korean | Chinese | Japanese

Chapter 4. Video Image APIs

Request Live Video Image

 Request
http://<address>:<port>/reqLive?ch=<ch>
    [&sub=<sub-stream index, default=0>]
    [&format=<image format jpg|png, default=jpg>]

· ch: Channel number.

· sub: Sub-stream index; defaults to 0 (primary stream) if not provided.

· format: Specifies the image format (either jpg or png); defaults to jpg if not provided.

 Response
JPG / PNG image

 

Request Recorded Video Image

 Request
### Method 1: Specify time in YYYYMMDDHHMMSS
http://<address>:<port>/reqFrame?ch=<channel no>
    [&sub=<sub-stream index, default=0>]
    &time=<YYYYMMDDHHMMSS>
    &format=<jpg|png>

### Method 2: Specify time using Unix Timestamp
http://<address>:<port>/reqFrame?ch=<channel no>
    [&sub=<sub-stream index, default=0>]
    &timestamp=<Unix Timestamp>&format=<jpg|png>

· ch: Channel number.

· sub: Sub-stream index; defaults to 0 (primary stream) if not provided.

· time: Specifies the exact time of the video image, formatted as `YYYYMMDDHHMMSS`.

· timestamp: Specifies the time of the video image in Unix timestamp format.

· format: Specifies the image format (either jpg or png); defaults to jpg if not provided.

 Response
JPG / PNG image

 

Request Archived Video File Image

 Request
http://<address>:<port>/reqFileFrame?id=<file id>
    &timestamp=<Unix Timestamp>&format=<jpg|png>

· id: Unique file Id.

· timestamp: Specifies the time of the video image in Unix timestamp format.

· format: Specifies the image format (either jpg or png); defaults to jpg if not provided.

 Response
JPG / PNG image