How to get camera streams in Management Client plugin?

Hi!

I’m developing a Management Client plugin with MIPSDK 2017 R1 and I need to get a list of camera streams.

The camera has 3 streams, but when I try to get them in my plugin with:

List<DataType> streamsData = new StreamDataSource(cameraItem).GetTypes();

streamsData is an empty list (I get the cameraItem with ItemPickerForm).

The same code in Smart Client plugin (from PluginSamples\SCInsertCamera) or in standalone program is working fine and streamsData contains 3 items.

How do I get camera streams in Management Client plugin?

Thanks.

I suspect this was never implemented as the Management Client is not by design the place you would play the streams, you would use the Smart Client for playing the streams. However I can see that the information about the streams is useful also in a Management Client plugin. I have persuaded Milestone Development to develop an enhancement implementing the support for stream information. This will be in a future version of the Management Client.

As a workaround it is possible to get information about the streams using the Configuration API. You can explore the Config API Client sample as a first on this.

The 2017R3 version of the Management Client will include this anhanced functionality. The 2017R3 version of the MIP SDK will come with an improved Video Preview plug-in sample to show it.