Monitor(); if ( $user['MonitorIds'] ) { $monitor_ids = explode( ',', $user['MonitorIds'] ); if ( count($monitor_ids) and ! in_array( $Event->MonitorId(), $monitor_ids ) ) { $view = 'error'; return; } } if ( isset( $_REQUEST['rate'] ) ) $rate = validInt($_REQUEST['rate']); else $rate = reScale( RATE_BASE, $Monitor->DefaultRate(), ZM_WEB_DEFAULT_RATE ); if ( isset( $_REQUEST['scale'] ) ) { $scale = validInt($_REQUEST['scale']); } else if ( isset( $_COOKIE['zmWatchScale'.$Event->MonitorId()] ) ) { $scale = $_COOKIE['zmEventScale'.$Event->MonitorId()]; } else { $scale = reScale( SCALE_BASE, $Monitor->DefaultScale(), ZM_WEB_DEFAULT_SCALE ); } $replayModes = array( 'single' => translate('ReplaySingle'), 'all' => translate('ReplayAll'), 'gapless' => translate('ReplayGapless'), ); if ( isset( $_REQUEST['streamMode'] ) ) $streamMode = validHtmlStr($_REQUEST['streamMode']); else $streamMode = 'video'; if ( isset( $_REQUEST['replayMode'] ) ) $replayMode = validHtmlStr($_REQUEST['replayMode']); if ( isset( $_COOKIE['replayMode']) && preg_match('#^[a-z]+$#', $_COOKIE['replayMode']) ) $replayMode = validHtmlStr($_COOKIE['replayMode']); else { $keys = array_keys( $replayModes ); $replayMode = array_shift( $keys ); } // videojs zoomrotate only when direct recording $Zoom = 1; $Rotation = 0; if ( $Monitor->VideoWriter() == '2' ) { # Passthrough $Rotation = $Event->Orientation(); if ( in_array($Event->Orientation(),array('90','270')) ) $Zoom = $Event->Height()/$Event->Width(); } parseSort(); parseFilter( $_REQUEST['filter'] ); $filterQuery = $_REQUEST['filter']['query']; $panelSections = 40; $panelSectionWidth = (int)ceil(reScale($Event->Width(),$scale)/$panelSections); $panelWidth = ($panelSections*$panelSectionWidth-1); $connkey = generateConnKey(); $focusWindow = true; xhtmlHeaders(__FILE__, translate('Event') ); ?>
Id() ) { echo 'Event was not found.'; } else { ?>
Id() ?> Cause()) ?> StartTime() ) ) ?> Length() ?>s ">Frames() ?>/AlarmFrames() ?> ">TotScore() ?>/AvgScore() ?>/MaxScore() ?>
DefaultVideo() ) { ?>
DefaultVideo() ) { ?>class="hidden" > Width(), $scale ), reScale( $Event->Height(), $scale ), ZM_MPEG_LIVE_FORMAT ); } else { $streamSrc = getStreamSrc( array( "source=event", "mode=jpeg", "event=".$eid, "frame=".$fid, "scale=".$scale, "rate=".$rate, "maxfps=".ZM_WEB_VIDEO_MAXFPS, "replay=".$replayMode) ); if ( canStreamNative() ) { outputImageStream( "evtStream", $streamSrc, reScale( $Event->Width(), $scale ), reScale( $Event->Height(), $scale ), validHtmlStr($Event->Name()) ); } else { outputHelperStream( "evtStream", $streamSrc, reScale( $Event->Width(), $scale ), reScale( $Event->Height(), $scale ) ); } } // end if stream method ?>

:   : x : s : x
SaveJPEGs() & 3) { // frames or analysis ?>