What is the best way to return an alarm ID triggered via a generic event

What is the best way to return an alarm ID and corresponding camera and recorded video, when an alarm is triggered via a a generic event ?

In a test environment, we have a camera recording pre and post video clip triggered by a generic event. That event creates an alarm entry. In the Smart client you see the alarm entry and associated camera and video.

Did not find anything in the SDK that retrieves video based on an alarm ID.

With the AlarmViewer sample you can see how you read or subscribe to alarms.

You would need to use the information from the alarm to control playback, and you are right no sample shows this.

The PlaybackUser sample shows how to issue a Goto (time).

My suggestion is that you implement code that goto the time of the alarm and start playback.