Go to documentation repository
To get live video from Camera 1 send the following message to port 900:
CAM|1|START_VIDEO|compress<1>
Here compress<> is compression ratio, from 0 to 5. Video frames will be received as a response to this message. The example of how to process incoming frames is given in Demo kit available for download at the page of Axxon PSIM software integration Guide (HTTP API, IIDK, ActiveX).
To get archived video from Camera 1 send the following messages to port 900:
CAM|1|ARCH_FRAME_TIME|time<dd-mm-yy HH:MM:SS.FFF> (to specify start time for viewing the archive) or CAM|1|PLAY|compress<> (to get archived video. Archived video is handled the same way as live video)
In order to get the full list of time intervals with video recordings for exact date, send the following message to port 900:
CAM|id|ARCH_GET_INTERVALSREC|date<>,time_with_milliseconds<1>,with_filenames<1>
The date<> parameter can take the date<dd-mm-yy|> value or it can be left blank. In the first case, the intervals for the specified date will be requested, in the second case, the dates for which the archive is present will be requested.
If the time_with_milliseconds<1> parameter is set, then the intervals will be received with milliseconds (for example, 14:08:55.677 14:09:55.641). If the with_filenames<1> parameter is set, then the message will contain filenames (for example, 'C:\VIDEO\26-04-21 14\0._01'). These parameters are optional.
As a result the following message is received:
Event: CAM|id|SET_INTERVALSREC|intervals<>,date<>,timezone<>
The value of intervals<> parameter looks like this: intervals<begin1 end1\nbegin2 end2…\nbeginN endN|date1\ndate2…\ndateN\n>
The time of beginning and ending are one blank separated (0x20 code), intervals are line break separated ‘\n’(0x0A code).
date<dd-mm-yy|> parameter represents date for which the intervals were requested or blank value (date<>) if dates for the entire period were requested.
timezone<> shows time shift on the client (IIDK) relative to Server time, in minutes. Examples:
Request example:
CAM|1|ARCH_GET_INTERVALSREC|date<26-04-21>,time_with_milliseconds<1>,with_filenames<1>
Response example:
CAM|1|SET_INTERVALSREC|time_with_milliseconds<1>,intervals<14:07:55.659 14:08:55.637 - - file:'C:\VIDEO\26-04-21 14\0._01' 14:08:55.677 14:09:55.641 - - file:'C:\VIDEO\26-04-21 14\1._01' 14:09:55.681 14:10:35.667 - - file:'C:\VIDEO\26-04-21 14\2._01' 14:17:12.444 14:18:09.553 - - file:'C:\VIDEO\26-04-21 14\3._01' 14:29:41.132 14:29:41.292 - - file:'C:\VIDEO\26-04-21 14\4._01' 14:29:41.432 14:29:51.363 - - file:'C:\VIDEO\26-04-21 14\5._01' 14:34:38.788 14:35:03.117 - - file:'C:\VIDEO\26-04-21 14\6._01' 14:35:03.267 14:36:19.151 - - file:'C:\VIDEO\26-04-21 14\7._01' >,timezone<-180>,module<iidk_client_test_x64.exe>,_TRANSPORT_ID<>,with_filenames<1>,date<26-04-21>,SLAVE_id<VDESKTOP.2A180FE5-BA8E-420C-B80E-90DC20516A26>,durationMS<0>