Hello,
I am writing code to search then download videos or pictures from the SD card of my DS-2DE4220IW-DE camera.
I use ISAPI/ContentMgmt/search to engage a search. The sending Xml is :
which can be sent to the server from a file with:
curl -X POST -d @file http://<user>:<pass>@<camera-ip>/ISAPI/ContentMgmt/search
The response is :
I don't understand why the response returns videos out of the search criteria (time between 2018-01-09T20:00:00Z and 2018-01-09T21:00:00Z).
Thanks for your help !
I am writing code to search then download videos or pictures from the SD card of my DS-2DE4220IW-DE camera.
I use ISAPI/ContentMgmt/search to engage a search. The sending Xml is :
HTML:
<?xml version="1.0" encoding="utf-8"?>
<CMSearchDescription>
<searchID>anythinghere</searchID>
<trackList>
<trackID>101</trackID>
</trackList>
<timeSpanList>
<timeSpan>
<startTime>2018-01-09T20:00:00Z</startTime>
<endTime>2018-01-09T21:00:00Z</endTime>
</timeSpan>
</timeSpanList>
<contentTypeList>
<contentType>video</contentType>
</contentTypeList>
<maxResults>40</maxResults>
<metadataList>
<metadataDescriptor>//metadata.psia.org/VideoMotion</metadataDescriptor>
</metadataList>
</CMSearchDescription>
which can be sent to the server from a file with:
curl -X POST -d @file http://<user>:<pass>@<camera-ip>/ISAPI/ContentMgmt/search
The response is :
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<CMSearchResult version="1.0" xmlns="http://www.hikvision.com/ver10/XMLSchema">
<searchID>{C6022BA1-BB30-0001-B811-95A517711717}</searchID>
<responseStatus>true</responseStatus>
<responseStatusStrg>OK</responseStatusStrg>
<numOfMatches>11</numOfMatches>
<matchList>
<searchMatchItem>
<sourceID>{0000000000-0000-0000-0000-000000000000}</sourceID>
<trackID>101</trackID>
<timeSpan>
<startTime>2018-01-09T12:57:23Z</startTime>
<endTime>2018-01-09T13:02:17Z</endTime>
</timeSpan>
<mediaSegmentDescriptor>
<contentType>video</contentType>
<codecType>H.264-BP</codecType>
<playbackURI>rtsp://192.168.0.42/Streaming/tracks/101/?starttime=20180109T125723Z&endtime=20180109T130217Z&name=ch01_00000000220000000&size=263716864</playbackURI>
</mediaSegmentDescriptor>
<metadataMatches>
<metadataDescriptor>recordType.meta.hikvision.com/timing</metadataDescriptor>
</metadataMatches>
</searchMatchItem>
...
I don't understand why the response returns videos out of the search criteria (time between 2018-01-09T20:00:00Z and 2018-01-09T21:00:00Z).
Thanks for your help !