Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Curl video request. Main stream format  Camera managing Next page


Example request:

HTTP/1.0 200 OK
Connection: close
Server: AxxonSoft-PSIM-Webserver/4.9.0.0
Cache-Control: no-store,no-cache,must-revalidate,max-age=0
Pragma: no-cache
Date: Mon, 13 Jan 2013 10:44:27 GMT
Content-Type: multipart/mixed;boundary=videoframe
 
--videoframe
Content-Type: text/xml
Content-Length: 138 
   
<video_in>
  <sessionid>FC126734</sessionid>
  <video_in>CAM:5</video_in>
  <newstate>started</newstate>
  <errcode>100</errcode>
</video_in> 
 --videoframe
Content-Type: image/jpeg
Content-Length: 23978
X-Width: 320
X-Height: 240
X-Time: 2013-03-15T10:51:44.314+04:00
X-Timestamp: 0.000
 
 <jpeg image>
--videoframe
Content-Type: image/jpeg
Content-Length: 23651
X-Width: 320
X-Height: 240
X-Time: 2013-03-15T10:51:44.314+04:00
X-Timestamp: 0.152
 
 <jpeg image>

Response parameters:

Parameter

Description

X-Width

Image width

X-Height

Image height

X-Time

Absolute time of frame forming

X-Timestamp

Relative frame time in seconds (relatively stream head)

Example response:

In case of stream end due to the fault of server, the end packet can be received:

--videoframe
Content-Type: text/xml
Content-Length: 106
<video_in>
  <sessionid>FC126734</sessionid>
  <video_in>CAM:5</video_in>
  <newstate>closed</newstate>
  <errcode>103</errcode>
</video_in>

Response parameters:

Parameter

Description

sessionid

Session ID (the same as at start)

video_in

Camera ID

errcode

Error code:

  • 100 – error absence.
  • 101 – too many connected users.
  • 102 – invalid password (theoretically, it's possible to change password at any moment).
  • 103 – unavailable video.
  • 104 – old client version. Update version.
  • No labels