Retrieve Hardware Name

Hi,

How do we retrieve hardware name instead of camera name listed under camera group?

need below name

instead of

using List items = VideoOS.Platform.Configuration.Instance.GetItemsByKind(Kind.Camera);

provides list of cameras under camera group

SDK version: 2020 R3

Thanks,

Vikas

If you used GetItemsByKind with “Kind.Camera”, then you get camera item which is not hardware. Instead, please test this code

VideoOS.Platform.Configuration.Instance.GetItemsByKind(Kind.Hardware, ItemHierarchy.SystemDefined)

NOTE: Please explore the Configuration Access sample -

https://doc.developer.milestonesys.com/html/index.html?base=samples/configaccess_sample.html&tree=tree_2.html

You will see differences between check-on and off the Physical Hierarchy checkbox in the dialog.