Hi.
I’d need to know if it’s possible (and how) to retrieve the name (or the id) of the driver used by a connected camera from inside a MIP Client plugin. I’m able to retrieve a lot of information but nothing regarding the camera driver.
Thank you and best regards.
In a MIP plugin you can use the ConfigurationItems to retrieve setup information including the information on the driver used.
The snippet of code might be what you need.
using VideoOS.Platform;
using VideoOS.Platform.ConfigurationItems;
..
Camera camera = new Camera(cameraFQID);
Hardware hardware = new Hardware(cameraFQID.ServerId, camera.ParentItemPath);
label1.Text = hardware.Model;
RecordingServer rs = new RecordingServer(cameraFQID.ServerId, hardware.ParentItemPath);
HardwareDriver hardwareDriver1 = rs.HardwareDriverFolder.HardwareDrivers.FirstOrDefault(x => x.Path == hardware.HardwareDriverPath);
label1.Text += " - Hardware Driver: " + hardwareDriver1.Name + Environment.NewLine;