Thanks for all the information. I have couple of more queries:
I am using XProtect Essential+ 2020 R3. I have a camera HikVision DS-2CD2010F-I and I keep it switch on always.
1. I used the following statements to get sequence data and just for discussion I pasted few data here:
var sequences = dataSource.GetData(archieve_DateTime.ToUniversalTime(), new TimeSpan(0, 1, 0), int.MaxValue, new TimeSpan(0, 1, 0), int.MaxValue, VideoOS.Platform.Data.DataType.SequenceTypeGuids.RecordingSequence);
string s = “”;
foreach (SequenceData sequence in sequences)
{
s += "\\n" + [sequence.EventHeader.Name](https://sequence.EventHeader.Name) + " " + sequence.EventSequence.StartDateTime.ToLocalTime().ToString() + " TO " + sequence.EventSequence.EndDateTime.ToLocalTime().ToString();
}
16-02-2021 19:44:06 TO 16-02-2021 19:44:17
16-02-2021 19:44:49 TO 16-02-2021 19:45:00
16-02-2021 19:52:51 TO 16-02-2021 19:53:02
16-02-2021 19:54:12 TO 16-02-2021 19:54:23
16-02-2021 19:54:52 TO 16-02-2021 19:55:04
16-02-2021 19:59:51 TO 16-02-2021 20:00:02
16-02-2021 20:01:13 TO 16-02-2021 20:01:24
16-02-2021 20:03:02 TO 16-02-2021 20:03:13
16-02-2021 20:39:10 TO 16-02-2021 20:39:21
If we check the last two entries, there was 36 minutes gap. I have analyzed some other data also and found similar kind of gaps. Please correct me if I am wrong, but I have a feeling that Milestone only saves video if there is some kind of motion happened in front of camera. If I keep the camera in a place where there is always some kind of activity, gap length reduces to few seconds only.
I am wondering whether XProtect Essential+ 2020 R3 comes under E-Code Products or C-Code. If it is come under E-Code, why I am not getting a continuous recording information, even if I am asking for SequenceTypeGuids.RecordingSequence.
2. I am using following controls for playback streaming:
<platformclient:ImageViewerWpfControl x:Name=“playbackPlayer” />
<platformclient:PlaybackWpfUserControl x:Name=“_playbackUserControl” />
I can see the playback date time over the video running on ImageViewerWpfControl, but did not find any way to access that current playback date time from those controls. I am wondering if there is any easy way to get that date part just like we can get the date part from JPEGData object:
VideoOS.Platform.Data.JPEGVideoSource.GetAtOrBefore (DateTime dateTime) and then use DateTime VideoOS.Platform.Data.JPEGData.DateTime