xml - Device returns recordings only for the last 24 hours using Onvif method GetRecordingSearchResults -


i'm trying recordings network video recorder using onvif protocol (profile g). first search token using method findrecordings. , recording list via method getrecordingsearchresults using search token. recordings last 24 hours no matter maxmatches, maxresults or recordinginformationfilter use. on web interface of device see contains recordings more last 24 hours. i've tested on app onvif device test tool , same result on app.

findrecording method:

  <soap:body>     <tse:findrecordings>       <tse:scope>         <tse:includedsources>           <tse:token>tokenrecordingjob1</tse:token>         </tse:includedsources>         <tse:includedrecording>tokenrecording1</tse:includedrecording>         <tse:recordinginformationfilter>recordingfilter1</tse:recordinginformationfilter>       </tse:scope>       <tse:maxmatches>10</tse:maxmatches>       <tse:keepalivetime>pt60s</tse:keepalivetime>     </tse:findrecordings>   </soap:body> 

getrecordingsearchresults method:

  <soap:body>     <tse:getrecordingsearchresults>       <tse:searchtoken>searchtoken[172]</tse:searchtoken>       <tse:minresults>1</tse:minresults>       <tse:maxresults>10</tse:maxresults>       <tse:waittime>pt10s</tse:waittime>     </tse:getrecordingsearchresults>   </soap:body> 

i trying use recordinginformationfilter xpath parameter:

boolean(//tt:earliestrecording[number(replace(replace(replace(replace(text(),'-',''), 't', ''), 'z', ''), ':', '')) < 20170327000000]) 

but when use sign < device doesn't response, , when use sing > device returns recordings last 24 hours, no matter number compare with. checked xpath on online xpath testers , works well.

part of response device:

<tse:getrecordingsearchresultsresponse>   <tse:resultlist>     <tt:searchstate>completed</tt:searchstate>     <tt:recordinginformation>       <tt:recordingtoken>c1/b1490584811/e1490587163/dvideoandaudio/</tt:recordingtoken>       <tt:source>         <tt:sourceid>c1/b1490584811/e1490587163/dvideoandaudio/</tt:sourceid>         <tt:name>the recording soure name</tt:name>         <tt:location>the recording soure information location</tt:location>         <tt:description>the recording source information description</tt:description>         <tt:address>rtsp://example.example.com:554/c1/b1490584811/e1490587163/replay/</tt:address>       </tt:source>       <tt:earliestrecording>2017-03-27t03:20:11z</tt:earliestrecording>       <tt:latestrecording>2017-03-27t03:59:23z</tt:latestrecording>       <tt:content>the recording information content</tt:content>       <tt:track>         <tt:tracktoken>tracktoken[0]</tt:tracktoken>         <tt:tracktype>video</tt:tracktype>         <tt:description>the track information description</tt:description>         <tt:datafrom>2017-03-27t03:20:11z</tt:datafrom>         <tt:datato>2017-03-27t03:59:23z</tt:datato>       </tt:track>       <tt:track>         <tt:tracktoken>tracktoken[1]</tt:tracktoken>         <tt:tracktype>audio</tt:tracktype>         <tt:description>the track information description</tt:description>         <tt:datafrom>2017-03-27t03:20:11z</tt:datafrom>         <tt:datato>2017-03-27t03:59:23z</tt:datato>       </tt:track>       <tt:recordingstatus>unknown</tt:recordingstatus>     </tt:recordinginformation>     <tt:recordinginformation>       <tt:recordingtoken>c1/b1490587206/e1490594255/dvideoandaudio/</tt:recordingtoken>       <tt:source>         <tt:sourceid>c1/b1490587206/e1490594255/dvideoandaudio/</tt:sourceid>         <tt:name>the recording soure name</tt:name>         <tt:location>the recording soure information location</tt:location>         <tt:description>the recording source information description</tt:description>         <tt:address>rtsp://example.example.com:554/c1/b1490587206/e1490594255/replay/</tt:address>       </tt:source>       <tt:earliestrecording>2017-03-27t04:00:06z</tt:earliestrecording>       <tt:latestrecording>2017-03-27t05:57:35z</tt:latestrecording>       <tt:content>the recording information content</tt:content>       <tt:track>         <tt:tracktoken>tracktoken[0]</tt:tracktoken>         <tt:tracktype>video</tt:tracktype>         <tt:description>the track information description</tt:description>         <tt:datafrom>2017-03-27t04:00:06z</tt:datafrom>         <tt:datato>2017-03-27t05:57:35z</tt:datato>       </tt:track>       <tt:track>         <tt:tracktoken>tracktoken[1]</tt:tracktoken>         <tt:tracktype>audio</tt:tracktype>         <tt:description>the track information description</tt:description>         <tt:datafrom>2017-03-27t04:00:06z</tt:datafrom>         <tt:datato>2017-03-27t05:57:35z</tt:datato>       </tt:track>       <tt:recordingstatus>unknown</tt:recordingstatus>     </tt:recordinginformation> 

what should change recordings more last 24 hours?


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -