Go to documentation repository
...
Switch camera to the colored mode and start recording from it while arming the first camera.
Code Block |
---|
OnEvent("CAM","1","ARM") //first video camera is armed { DoReact("CAM","1","SETUP","color<1>"); // set colored mode of video camera DoReact("CAM","1","REC"); //record from the first camera } |
Arm the first video camera while disabling the fifth video camera.
Code Block |
---|
OnEvent("CAM","5","DETACH") // fifth video camera is disabled
{
DoReact("CAM","1","ARM"); //first video camera is armed
} |
Use half of resources while recording from the first camera (i.e. if 4 video cameras are connected through the first video capture device than the first camera will record with speed 6 fps, and other three cameras – with speed 2-2,5 fps) if it is in alarm state.
Code Block |
---|
OnEvent("CAM","1","MD_START") //first video camera is in alarm state
{
DoReact("CAM","1","SETUP","rec_priority<2>"); // use half of resources while recording
} |
Set maximal compression synchronously with the fourth microphone of audio card on the first video camera while recording from the first video camera on disk.
Code Block |
---|
OnEvent("CAM","1","REC") //first video camera recording on disk
{
DoReact("CAM","1", "SETUP", "compression<5>, audio_type<OLXA_LINE>, audio_id<4>"); //first video camera, maximal compression, synchronously with forth microphone of audio card. |
Start recording from the first camera with minimal quality in black and white mode when it stopped to be in alarm.
Code Block |
---|
OnEvent("CAM","1","MD_STOP") // first camera stopped to be in alarm state { value = 5; DoReact("CAM", "1", "SETUP", "compression<" + value + ">,color<0>"); //start record from the first video camera with minimal quality in black and white mode. } |
Start recording from the first camera in the “rollback” mode when it disarmed.
Code Block |
---|
OnEvent("CAM","1","DISARM") //first video camera is disarmed
{
DoReact("CAM","1","REC","rollback<1>"); // Start record from the first video camera in the "rollback" mode
} |
Set new parameters of video signal while connecting the first video camera.
Code Block |
---|
OnEvent("CAM","1","ATTACH") //first video camera is connected { VIDEO_CANAL_ID = GETOBJECTPARAM("CAM","1","PARENT_ID"); // define ID of video channel to which the first camera belongs DoReact("GRABBER",VIDEO_CANAL_ID,"SETUP","chan<0>,mode<0>,resolution<1>,format<pal>"); //set new parameters of video channel. } |
Start auto cruising on Camera 1 when Macro 2 is run.
Code Block |
---|
OnEvent ("MACRO","2","RUN")
{
DoReact("CAM","1","CRUISE_START","cruise_id<1>,action<CRUISE_START>,cam_id<1>");
} |
...