Item item = Configuration.Instance.GetItem(new Guid(cameraId), Kind.Camera);
JPEGVideoSource jpegVideoSource = new JPEGVideoSource(item);
jpegVideoSource.Compression = ImageQuality;
jpegVideoSource.Init();
if (!(jpegVideoSource.Get(dateTime) is JPEGData jpegData))
{
jpegVideoSource.Close();
return null;
}
jpegVideoSource.Close();
Using above code to get snapshot
This code uses jpegVideoSource.Get() , but even if the recording is not present instead of returning null it returns an object.
We get the nearest image i think
But i need snapshot if recording is present at that time otherwise empty or null
please help