Clarifications about Configuration vs ConfigurationItems API

Hello,

At https://doc.developer.milestonesys.com/html/index.html?base=samples/camerastreamresolution.html&tree=tree_2.html we see that to get the FPS it uses the Configuration api.

For example, JPEGVideoSource only accepts an Item, which means you cannot use the ConfigurationItems API.

Here are my questions:

  1. How do we go from VideoOS.Platform.ConfigurationItems.Camera to a VideoOS.Platform.Item?
  2. If I want to write a tool/plugin that works across most installations (2017+), can we use the ConfigurationItems API or is that buggy (my understanding is that the Configuration API is older and thus better supported)?
  3. How to extract the Stream1 *configured* resolution value using the Configuration API? The example only shows live/recorded FPS resolution values. With the ConfigurationItems API I know I can use StreamChildItem.GetProperty(“Resolution”).

Thanks in advance :slight_smile:

Philippe

1. Please see this link – GetItem (Guid objectId, Guid kind)

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_configuration.html&tree=tree_search.html?search=getitem

This method can get one specific Item, based on its ObjectId (the Guid), and the Kind of Item (the Kind is supplied to speed up the lookup method).

2. Strongly typed classes (VideoOS.Platform.ConfigurationItems) were added with the MIP SDK 2017 R3. The expectation would be that if there is a bug both VideoOS.ConfigurationAPI and VideoOS.Platform.ConfigurationItems will be affected the same way, we will not recommend one for the other and we think it is more a question which of them you feel is the programming style that you prefer.

3. Config API Client can show this, please explore Config API Client.

Thanks a lot for your great answer!