I have done the integration using milestone mip sdk. when i pull the camera details, it is returning hardwareid null.
1- How we can get the hardware details from MIP SDK like we get through rest API
2- If camera is returning hardwareid null, how we can get hardware details of that camera.
3-How can we get event through mip sdk when any camera configuration is changed. I research and found out that milestone is not sending exact change of the camera. I took snapshot of camera, how to make sure if nothing is changed on the site and if somethign like fps or resolution is changed, how to get that event.
The MIP SDK has two types of “configuration”. VideoOS.Platform.Configuration
Historically the older, using this class you get the information a client need, so no information about hardware, driver or similar VideoOS.Platform.ConfigurationItems
This is the Configuration API exposed as strongly typed classes. The Rest API also exposes this.
Converting from one to the other
This snippet of code should show the relations.
private void FindHardwareInfo(FQID cameraFqid)
{
var camera = new VideoOS.Platform.ConfigurationItems.Camera(cameraFqid);
var hardware = new Hardware(camera.ServerId, camera.ParentItemPath);
var driverSettings = hardware.HardwareDriverSettingsFolder.HardwareDriverSettings.FirstOrDefault();
label1.Text += driverSettings.HardwareDriverSettingsChildItems.FirstOrDefault().Properties.GetValue(“MacAddress”);
}
private void FindHardwareInfo(Item cameraItem)
{
FindHardwareInfo(cameraItem.FQID);
}
private void CameraToItem(Camera camera)
{
var item = Configuration.Instance.GetItem(camera.Guid, Kind.Camera);
label1.Text += "Camera item: " + item.Name + Environment.NewLine;
}
How can i integrate the specific user activity, for example a user exports some video which is not allowed ? how can i integrate this event ? or for this purpose i need to pull all logs and then filter ?
Secondly, how can i get event if some user change the configuration of a specific camera, for example, if compliance is 25fps and h.264 code, if any user changes the fps to 10fps of Camera A, how can i get it as event through MIP SDK or event api ?
Creating new topics instead of appending questions to already answered threads significantly improves the usefulness and readability of the forum for everyone.