Does the Milestone SDK "ExportSample" work in a Federated/Multi-site System?

The current environment:

The application is a large (400+ site) secure (banking) Milestone federated/Multi-site system.

Symptom:

Our custom Export tool that uses the Milestone SDK ExportSample works in our smaller scale federated/multi-site test system every time but rarely works on the customer’s large scale federated system.

At the customers site exporting for the same cameras and times work from within Milestone Client using the Milestone “Export” tool.

Most times export does not work at the customer site when using our Export tool created based on the

\Milestone\MIPSDK_2020R3\ComponentSamples\ExportSample provided in the SDK.

Our SDK based export program is an external component that is executed upon a request for a specific camera from our webserver that is hosted in a web portal view of the Milestone Client.

The export video Request is for .mkv file type

Our code was created from the MIP SDK 2020R3.

The Customer has a 2020R2 Corporate system.

We have tested the SDK export tool with both 2020R2 and 2020R3 Smart Clients at the customer site and we get the same results = rarely works.

Note: the same 2020R2 and 2020R3 Smart Client tests above work on our federated test system.

Our code follows the guidelines of SDK ExportSample.

Note: There is no “Federated” export sample provided in \Milestone\MIPSDK_2020R3\ComponentSamples

As a result the assumption made is that federated and non-federated system are both compatible with the “ExportSample” provided in the SDK.

The error message returned to startresult from the code based on the sdk “ExportSample” call:

“startresult = _exporter.StartExport(utime, ustoptime);” Equals “No video or audio in selected time period”

We have verified that the cameras used for failed ExportSample based exports, work fine for the same time period specified using the Smart Client Export tool.

Please advise

Thanks

Paul

I would think that using the MultiSiteViewer sample for establishing login to the federated site, and then combined with Export Sample to create the exports would work.

Can you elaborate on whether this sounds like what your program is doing?

If you use the unmodified Export Sample and login directly on the site holding the camera, does it fail the same way? Establishing whether the Export sample fails in general or because of the “multi-site” will greatly help us pointing debug efforts in the right direction.

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

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

It is unclear to me if this never works or works sometimes.

Hi Bo,

We have tried what you have suggested and then some.

Are there any log files that the SDK export reports to that we can look at for more detail?

Can you think of any other tests that we can do to help isolate this problem or give us more detail on that is going on?

Please advise

Thanks

Paul

I really think the suggestion I made is the way to go. Find out whether a client that only uses one site has the same issue. I really think it is the valuable first step to learn if the issue is on the exporter in general or only because of the multi-site..

Our C2P Export program performs as you describe, login to federated site, retrieve all camera items from each site. The export camera requested in the C2P Export program then locates the requested camera from the list of camera items retrieved from multi-site logins. The program then follows the SDK example for exporting video.

The error we receive when running the export code indicates that the camera item was located and an attempt to export executed (No data at selected time is the response). The time we request is correct.

The unmodified Milestone export sample works on our “federated” C2P development system. We are able to login to a specific site and export video.

Unfortunately, we are at a production site where the C2P export code is failing. Highly secure site. I’m not sure I will be allowed to login to an individual site holding the camera using the Milestone Export Sample.