Go to documentation repository
Page History
...
The GATE object sends events presented in the table. Procedure is started when the corresponding event appearsoccurs. Format of the events procedure for the Videogate object:
Code Block |
---|
OnEvent("GATE ","_id_","_event_") |
Events | Description | Comment |
GATE_LOW_FPS | Input speed on the gate is reduced |
ACTIVE | Gate is active | Event is generated when the list of |
working cameras corresponds to the list of the Videogate configuration |
INACTIVE | Gate is inactive | Event is generated when there are no requests for video |
streams through the Videogate |
ACTIVE_PART | Partial |
operation of gate | Event is generated |
when the number of |
working cameras is less than in the |
Videogate list | ||
START_VIDEO | Start writing to the archive | Event is generated when the recording by camera is started |
STOP_VIDEO |
Example. Send corresponding messages to all system cores while reducing when the input speed on the gate 1 is reduced.
Code Block |
---|
OnEvent("GATE ","1"," GATE_LOW_FPS ") { NotifyEventGlobal ("GATE ","1"," GATE_LOW_FPS "); } |
Operator format for operations with the Videogate:
Code Block |
---|
DoReact("GATE","_id_","_command_"[,"_parameters_"]); |
The list of commands and parameters for the GATE object is presented in the table.
Command—command description | Parameters | Parameter description | Features |
---|---|---|---|
START_VIDEO—enable camera video stream and start writing to the archive | cam<> | Identifier of the camera by which it is necessary to start or stop recording | The commands work even if the Monitor doesn't display the selected camera. The commands work if constant recording and active camera recording is enabled in the Videogate—see Configuring the record of the Videogate module archive |
STOP_VIDEO—stop camera video stream and stop writing to the archive |