Great!
Will you do it?
Will this time format be supported?
Code: Select all
2024-06-29 15:50:30
Code: Select all
$Event = new ZM\Event($options['lastEvent']['Id']);
if (file_exists($Event->Path().'/alarm.jpg')) {
$fid = 'alarm';
} else if (file_exists($Event->Path().'/objdetect.jpg')) {
$fid = 'objdetect';
} else if (file_exists($Event->Path().'/snapshot.jpg')) {
$fid = 'snapshot';
} else { //Event file verification required! It may not exist due to a failure. But you need to display something!
$fid = 1;
}
This code works:
Code: Select all
?view=image&eid=464908&fid=alarm&width=300
Because "time= parameter" doesn't work for me
Code: Select all
mode=jpeg&scale=21&rate=100&maxfps=1&replay=none&connkey=441617&source=event&event=477618&rand=1720462871&auth=55b76267172f9931638faadcdbe67427&time=1720420649