Play sequence related to event

Hi all.

In our standalone app we are receiving events such as motion started/stopped, recording started/stopped and alarms. The received events contain a timestamp in the eventheader we use for a goto message to start playing a sequence at the given timestamp (ImageViwerControl). Problem: That event timestamp does not contain the pre-recording time, therefore the viewer doesn’t start at the very beginning of the sequence.

How can this be solved? Is there a way to find the correct timestamp of a sequence? Or is there a unique instance id for a sequence that can be addressed?

Regards,

Michael

The time-stamp of the sequence is the time-stamp of the event. I guess this is a design choice by Milestone. You can setup pre-buffer and pre-recording time to any value you please and it could be hours, and in case you setup a very long pre-recording time the timestamp being the time of the event might be the better choice.

If you want to solve this you can deduct time from the time-stamp and start the playback based on your calculated time.

You will not be able to get the information out of the XProtect VMS what the recording setup/rule is using as pre-recording time value.

Thanks Bo, but somehow the timestamps dont correlate.

Here my example events:

05.04.2017 15:39:22 “Motion Detected” Cam1

05.04.2017 15:39:22 “Recording Started” Cam1

When i use the Smart Client and navigate to the sequence (pressing “previous sequence” button) i end up at 15:39:18. Those are pretty sure the 3 seconds of pre buffer recording configured for the cam.

So if i take the event timestamp for playing the sequence, I am missing out the exact start of the sequence.

Regards,

Michael

The sequences in the Smart Client is only indirectly linked to events. The sequences are not based on event data but on available data in the video recording database. The link between the two is clear when you have periods of no recording with events triggering recording periods, but if you have multiple events overlapping etc. the sequences will not follow the events at all. I believe if you want to implement the same as the Smart Client does you can use sequence data rather than events. Try to explore the Data Source plug-in sample.