hello,
i have checked the ConfigApiClient sample but i am wondering is there any simple way that i can specify the camera id or name and get all camera settings and streams information without the need to loop the CameraGroupFolder than loop their child’s to retrieve the camera settings ?
below the best i achieved, can it be optimized or simplified ?
var cameraGroups= _configApiClient.GetChildItems(“/CameraGroupFolder”).ToList();
foreach (var group in cameraGroups)
{
group.Children = \_configApiClient.GetChildItems(group.Path);
foreach (var cameraFolder in group.Children)
{
cameraFolder.Children = \_configApiClient.GetChildItems(cameraFolder.Path);
foreach (var camera in cameraFolder.Children)
{
var settingsfolder = \_configApiClient.GetChildItems(camera.Path + "/DeviceDriverSettingsFolder").SingleOrDefault();
var setting = settingsfolder.Children;
var streamFolder = \_configApiClient.GetChildItems(camera.Path + "/StreamFolder").SingleOrDefault();
var stream = streamFolder.Children;
}
}
}
best regards,
Gaby