How to download a small video of camera in a specific time from Milestone by Java code?
Please explore the Mobile SDK samples, and the export options.
I checked, but don’t have answer about how to download a video with specific time via portocol. Could you please give me an example for downloading video automaticly?
There is no sample on exporting and downloading, so I guess you will start on one of the provided Mobile SDK samples..and thent maybe this will prove useful:
Download URL could be constructed from the information available in “GetExport” command response.
On the protocol documentation page (Home > Protocol Integration > Protocols > Mobile Server Protocol > Command Channel)
In the “GetExport” command section could be found sample response:
<?xml version="1.0" encoding="utf-8"?><Communication
xmlns:xsd=“http://www.w3.org/2001/XMLSchema”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
7fdc93c5-d1f6-4f17-acc3-a332e898a778
Response
GetExport
<Export
CameraId=“25c9a2d9-d044-4d1e-bb74-eb7e0ae9eb05”
CameraName=“Axis Q7404 Video Server (10.4.13.6) - Camera 1”
CompletedTime=“1352971268945”
EndTime=“1352971229000”
ExportId=“b146c13f-496f-40d9-a2c9-798f38f59673”
Link=“XProtectMobile/Export/virtualtest/b146c13f-496f-40d9-a2c9-798f38f59673/Axis Q7404 Video Server (10.4.13.6) - Camera 1.Avi”
Name=“Axis Q7404 Video Server (10.4.13.6) - Camera 1.Avi”
QueuedTime=“1352971258577”
Size=“292015643”
StartTime=“1352970989000”
State=“101”
ThumbLink=“XProtectMobile/Export/virtualtest/b146c13f-496f-40d9-a2c9-798f38f59673/Axis Q7404 Video Server (10.4.13.6) - Camera 1.Avi.thumbnail.jpeg”
Type=“Avi”
User=“VirtualTest”/>
OK
There is a “Link” attribute in the Export tag.
Adding it to Mobile server address produces downloadable URL.
Something like: “http(s)://:”/”
In the given sample context:
“http:://localhost:8081/ XProtectMobile/Export/virtualtest/b146c13f-496f-40d9-a2c9-798f38f59673/Axis Q7404 Video Server (10.4.13.6) - Camera 1.Avi”
Please start by using the Milestone Web Client on your test installation with Milestone Mobile server and see how exports are done using the Web Client. The formats available using the Mobile Sdk will fit those available when uisng the Web Client.