Get multiple video by adding multiple GUIDs

Hi,

We are trying leverage this code to add multiple camera.

List _cameraItems = new List();

var item = VideoOS.Platform.Configuration.Instance.GetItem(CameraId, Kind.Camera);

_cameraItems.Add(item);

We want to login to the server and get the videos for all the cameras GUID attached to that Server. We tried to add multiple GUIDs, but it gives us video for only one GUID at a time (the first GUID we added).

Is there a way where we can log into the server once and then fetch the video for all the GUIDs at once, instead of looping through the GUIDs and getting each video one by one.

We went through this documentation and we see the functions GetItem allows only one or top level nodes to retrieve videos. https://doc.developer.milestonesys.com/html/miphelp/class_video_o_s_1_1_platform_1_1_configuration.html

Can you please suggest us if there are any ways to fetch multiple videos at once. Any code snippet or any link should be helpful.

Thanks

Kaustub

You are not showing how you use the _cameraItems

As far as I can see that list should be perfectly fine and usable, if you add more items to the list it contains more cameras. Simply do more GetItem and each time add the item to the list.

What are you using to get video?

Classes like the ImageViewerWpfControl and BitmapVideoSource are created to handle one camera item at a time so you might have to use a collection of controls. The Export sample on the other hand does show how to use a list while exporting multiple cameras in one go.

Maybe the base problem is in understanding the configuration that is retrieved by GetItems, I will advise to explore the ConfigAccessViaSDK sample..

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

https://github.com/milestonesys