I was wondering if anyone could help me out i have never used API but i found out that my camera system has an SDK
I run this videoinsight server and it captures all the video and stores it. I would like to have a sensor lets say front door when open it would pull the live feed
I have found this but i don’t understand how to apply to hub
Live View Basics
This section describes the basic functions needed to include a Live View of a camera into you application. For more advanced functionality there is an exhaustive list of functions. This is intended to give the basics which will allow the developer to quickly understand the primary functions needed to view live video.
- Create a reference to the Active X control
713-621-9779 Page 6
private AxVIClientLib.AxVIClientCtrl axVIClientCtrl1;
This will create a reference to the AxViClientCtrl Active X with the name of axVIClientCtrl1
- Create an instance and assign it to your control axVIClientCtrl1 = new AxVIClientLib.AxVIClientCtrl(); axVIClientCtrl1.Dock = DockStyle.Fill; axVIClientCtrl1.Location = new System.Drawing.Point(0, 0); axVIClientCtrl1.Size = new System.Drawing.Size(splitContainer1.Panel1.Width,splitContainer1.Panel1.Height); axVIClientCtrl1.OnNewFrame += new AxVIClientLib._IVIClientCtrlEvents_OnNewFrameEventHandler(axVIClientCtrl1_OnNewFrame);
Notice a new Instance is created, the size and location were configured. It was then given basic options and then assigned to the Panel named Panel1.
The other interesting portion is the Event OnNewFrame was added. This will give the program an option to update the date string.
- Set Credentials and Layout axVIClientCtrl1.clear(); axVIClientCtrl1.setCredentials(“Administrator”, “123”); axVIClientCtrl1.setLayout(0);
- Add The Camera and Server axVIClientCtrl1.addServer(server_ip, 4010,
4011); axVIClientCtrl1.addCamera(server_ip, camera_id, “Camera 1”,
0, allow_ptz); axVIClientCtrl1.play();
Establish a connection to the server then add the desired camera.