Skip to content

ONVIF replay

Obtaining the list of the recordings available

Invoke:

DatasteadRTSPSourceConfig.GetStr (RTSP_ONVIF_Replay_As_XML_str, Value)

This function returns the list of the recordings available, with their replay URLs ("uri") in XML format, e.g.:

<recordings>
  <recording>
    <id>Cam1Rec0</id>
    <source>SRC_1_0</source>
    <name>________</name>
    <description>Cam1Rec0</description>
    <address>LOCAL_SRC_1_0</address>
    <earliest_time>2021-08-03 08:07:20</earliest_time>
    <latest_time>2021-08-04 04:13:48</latest_time>
    <earliest_time_t>1627970840</earliest_time_t>
    <latest_time_t>1628043228</latest_time_t>
    <uri>rtsp://192.168.6.139/rtsp_tunnel?rec=1&amp;vcd=2&amp;aacOut=1</uri>
  </recording>
</recordings>

Seeking the replay URL

To seek a replay, specify a start time expressed in milliseconds before opening the replay URL (e.g. to seek at 15 seconds), either by invoking:

DatasteadRTSPSourceConfig.SetInt ("RTSP_Source_StartTime_int", 15000)

or by adding >starttime=15000 at the end of the replay URL.