Handle event having no width or height
parent
d67f23b279
commit
15807eb419
|
|
@ -320,7 +320,7 @@ function queryRequest($filter, $search, $advsearch, $sort, $offset, $order, $lim
|
|||
if (!$event->canView()) continue;
|
||||
if ($event->Monitor()->Deleted()) continue;
|
||||
|
||||
$scale = intval(5*100*ZM_WEB_LIST_THUMB_WIDTH / $event->Width());
|
||||
$scale = $event->width() ? intval(5*100*ZM_WEB_LIST_THUMB_WIDTH / $event->Width()) : 100;
|
||||
$imgSrc = $event->getThumbnailSrc(array(), '&');
|
||||
$streamSrc = $event->getStreamSrc(array(
|
||||
'mode'=>'jpeg', 'scale'=>$scale, 'maxfps'=>ZM_WEB_VIDEO_MAXFPS, 'replay'=>'single', 'rate'=>'400'), '&');
|
||||
|
|
|
|||
Loading…
Reference in New Issue