Could we please get an elaborated explanation for the variables to this method?
VideoOS.Platform.Data.SequenceDataSource.GetData(DateTime dateTime, TimeSpan maxTimeBefore, int maxCountBefore, TimeSpan maxTimeAfter, int maxCountAfter)
5 variables to this method:
dateTime ← the start of the requested data
maxTimeBefore ← ?? we set to TimeSpan.FromTicks(0)
maxCountBefore ← ?? we set to 0
maxTimeAfter ← the amount of time after the start time
Think of this as a method of getting data to fill out the timeline in Smart Client.
The center of the timeline is the “current time” for playback, and the dateTime parameter specifies the “center” of the GetData request. Typically for the purposes of filling out the timeline, the maxtimebefore/after would each be 1 hour or 1 day, making a total timeline size of 2 hours or 2 days respectively.
maxTimeBefore and maxTimeAfter define the timespan around dateTime to look for sequences. Technically I suppose it could have been done with two datetime parameters (begin/end) to be more concise - I’m not sure what the reason for using the combination of timestamp and two timespans was.
The maxcount before/after, I have just been setting to int.MaxValue since I haven’t yet encountered a reason for limiting this.
Did that answer your question? I suspect this was already your conclusion and you’re just looking for confirmation?