how to retrieve the disable speaker and output?

hi,

i am using this code to retrieve IP speaker and output. but it’s not retrieve the disable IP Speaker and output(beacon).

List<VideoOS.Platform.Item> oItems = oInstance.GetItems(ItemHierarchy.SystemDefined);

i have try using this code to retrieve the disable item, however it’s return the all the camera’s output and speaker as well. is there anyway to filter to retrieve the disable IP Speaker and output(beacon) only?

List<VideoOS.Platform.Item> disableItem = VideoOS.Platform.SDK.Environment.GetDisabledDevices(oInstance.ServerFQID.ServerId.Id);

thank you

No, you have

abstract List VideoOS.Platform.Configuration.GetItemsByKind ( Guid kind)

-for the regular items on XProtect but the disabled items are special.

Disabling and deleting items was historically the same thing, but later came GetDisabledDevices.

For the items from GetDisabledDevices you will have to do the filtering afterwards in code.

thank you, problem solved