How to pull camera properties from mobile SDK in dotnet 5 project.

Our Milestone MIP SDK dependency is our only remaining dependency on .net Framework so we really want to convert the following code snippet to use the mobile SDK. How do we pull the following camera and hardware properties (ShortName, Lat, Long, CoverageDirection, etc.)from the mobile SDK?

var milestoneCameraObject = new VideoOS.Platform.ConfigurationItems.Camera(camera.FQID);
                var milestoneCameraHardware = new Hardware(milestoneCameraObject.ServerId, milestoneCameraObject.ParentItemPath);
 
                var vmsCamera = new VmsCamera
                {
                    VideoManagementSystemId = vms.Id,
                    VmsCameraId = camera.FQID.ObjectId,
                    IpAddress = new Uri(milestoneCameraHardware.Address).Authority,
                    Name = milestoneCameraObject.Name,
                    ShortName = milestoneCameraObject.ShortName,
                    Model = milestoneCameraHardware.Model,
                    Description = milestoneCameraObject.Description,
                    Latitude = camera.PositioningInformation.Latitude,
                    Longitude = camera.PositioningInformation.Longitude,
                    IsOnline = milestoneCameraObject.Enabled,
                    CoverageDirection = milestoneCameraObject.CoverageDirection * 360,
                    CoverageFieldOfView = milestoneCameraObject.CoverageFieldOfView * 360,
                    CoverageDepth = milestoneCameraObject.CoverageDepth,
                    IsPtzEnabled = camera.Properties.ContainsKey("PTZ") && string.Compare(camera.Properties["PTZ"], "Yes", StringComparison.OrdinalIgnoreCase) == 0
                };

Hi Jasper,

Unfortunately that kind of information is not available through the Mobile SDK.

The reason is - Mobile SDK was not designed to be used for administrative purposes, just for clients’ needs.

Thanks for the reply Nikolay.

We aren’t attempting to change anything on the server, just query the camera properties.

If it’s not possible in the mobile sdk, is it possible with soap or through an api? Is there any other way?

By ‘administrative purposes’ I meant both reading the system configuration and modifying it.

So the answer is still no - Mobile Server does not know anything about the camera properties (apart from the codec maybe) so you cannot obtain it through Mobile SDK.

I’ll ask a colleague of mine to further answer if there’s any other SOAP API capable of what you need.

The information you seek cannot be obtained by the Mobile SDK as the Mobile Server do not care for or keep this information.

You can obtain the information using the MIP Library (.Net), this is what the code you show does, but there is an alternative if not using .Net Framework.

The Configuration API server can be used directly as a SOAP service.

Please see:

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_configurationapi.html&tree=tree_4.html

(Note the “Login and Authentication process” section.)