Go to documentation repository
Getting events from the cameras that changed their state during the request execution (~30-60 seconds).
http://IP-address:port/web2/secure/feed/
http://127.0.0.1:8085/web2/secure/feed/
<message> <action>update</action> <objectId>CAM:1</objectId> <state>disconnected</state> </message> <message> <action>state</action> <objectId>CAM:1</objectId> <x>10.0</x> <y>123.9</y> </message> <message> <action>state</action> <objectId>CAM:1</objectId> <state>connected</state> <x>300.8</x> <y>670</y> </message> <message> <action>state</action> <objectId>CAM:1</objectId> <x>100</x> <y>100</y> </message> <message> <action>ping</action> </message>
Parameter | Description |
---|---|
action | Type of event. Possible values: create, delete, update |
objectId | id of the object that is the source of event (always with update, delete, create) |
state | id of a new object state (always with create. If the state has not changed, then there is no update state) |
x, y | New coordinates, if changed |
ts | The time and date of the object state change |