Is there a API for getting the groups under Devices->Cameras menus from the management client ? If not what are the other ways to get these details?
You have tagged both Mobile Server and Plugin integration, so not entirely sure what type of integration you are doing, but if you use one of the .NET approaches (plugin or component/standalone), you can easily get the groups by calling this and then recursively calling GetChildren:
VideoOS.Platform.Configuration.Instance.GetItemsByKind(Kind.Camera, ItemHierarchy.UserDefined)
An alternative approach is using Configuration API, where you will find the camera groups under /CameraGroupFolder (see doc: https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_configurationapi.html&tree=tree_4.html).
Can you send me a sample implementation code for GetItemsByKind and GetChildren?
Many of the samples does this, so please have a look at those. For instance the SCWorkspace sample:
SCWorkspace is a class library? I am unable to run it.
I found VideoViewer sample in /MIPSDK/ComponentSamples/ folder. I get the required groups there but at the start of the application it comes up with the login window, is there a way we can provide the login details in the code itself so that I don’t get this login screen?
I want to give the server address, username and password from code itself so that this screen doesn’t popup.
SCWorkspace is a plugin sample and has to be loaded by the Smart Client, but you can still look at the code and be inspired.
As to login from code have a look at e.g. the AddLayout sample.
Is there a database table that stores the group details? If so can you let me know the table name?
We don’t support accessing the database directly. You should always go through our APIs.
To answer your question regarding the integration - In my integration I want the list of the group which I see on the management client application under the Site name-> Devices ->Cameras menu. If I get the groups( and child items) list in JSON or any format to show it on my browser application.
In the first approach you suggested somehow I am not able to get the Kind in my code in the parameter Kind.Camera, ItemHierarchy.UserDefined, any help?
I tried going through the Configuration API link you sent but I don’t see anything related to CameraGroupFolder there, do you have any samples for this?
Kind is in VideoOS.Platform namespace, but as I wrote this requires you to use our .NET libraries which it does not sound like you are doing?
The configuration API is quite generic and thus you will not find specific subfolders described in the documentation. You can try have a look at the Configuration API Client sample to get an overview of what is available: https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/configapiclient/readme.html&tree=tree_2.html
I have added the VideoOS.Platform.dll in my vs c# project. Do you have running sample for this ?
Many of our samples uses the Kind definitions.
I am unsure why you cannot see it - have you remembered to add a
[using](javascript:void(0); “using”) VideoOS.Platform;
or alternatively simply reference using VideoOS.Platform.Kind.Camera?
Also, you can see the documentation here: https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_kind.html&tree=tree_search.html?search=kind
You can also have a look at our new REST API which contains similar functionality as the Configuration API:
Just be aware that it is still a pre-release and thus not part of the official product yet.
